Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save charlieyqin/a1aacacab900184ed49bc46dc478f7fb to your computer and use it in GitHub Desktop.
Save charlieyqin/a1aacacab900184ed49bc46dc478f7fb to your computer and use it in GitHub Desktop.
Install Jenkins Git plugins and restart the service.
$plugins = "${env:ProgramFiles(x86)}\Jenkins\plugins"
$c = New-Object Net.WebClient
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/git-client/1.4.6/git-client.hpi', "$plugins\git-client.hpi")
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/scm-api/0.2/scm-api.hpi', "$plugins\scm-api.hpi")
$c.DownloadFile('http://updates.jenkins-ci.org/download/plugins/git/2.0/git.hpi', "$plugins\git.hpi")
Restart-Service Jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment