Skip to content

Instantly share code, notes, and snippets.

@TimMurphy
Last active February 20, 2016 15:25
Show Gist options
  • Save TimMurphy/add2f0c2495aba43beff to your computer and use it in GitHub Desktop.
Save TimMurphy/add2f0c2495aba43beff to your computer and use it in GitHub Desktop.
Write-Host
Write-Host
Write-Host "---------------------------------------------------------------"
Write-Host "Path: " $env:Path
Write-Host "---------------------------------------------------------------"
Write-Host
Write-Host
Write-Host "---------------------------------------------------------------"
Write-Host "where choco"
cmd /c where choco
Write-Host "---------------------------------------------------------------"
Write-Host
Write-Host
Write-Host "---------------------------------------------------------------"
$jenkinsDirectory = "E:\Jenkins"
$jenkinsDir = [System.IO.Path]::Combine($jenkinsDirectory, "program").Replace("/", "\")
$installArguments = "jenkinsDir=""$jenkinsDir"""
Write-Host "Installing Jenkins '$installArguments'..."
cmd /c C:\ProgramData\chocolatey\bin\choco install jenkins -y --install-arguments $installArguments
Write-Host "---------------------------------------------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment