Skip to content

Instantly share code, notes, and snippets.

@glombard
Last active March 18, 2017 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save glombard/7457530 to your computer and use it in GitHub Desktop.
Save glombard/7457530 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