Disable git credential manager
This commit is contained in:
Родитель
63afb60ea8
Коммит
cc6ad5e50f
|
@ -13,6 +13,8 @@ $proc.WaitForExit()
|
|||
[System.Environment]::SetEnvironmentVariable("JAVA_HOME", "c:\Program Files\Java\jdk1.8.0_131", "Machine")
|
||||
[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";c:\Program Files\Java\jdk1.8.0_131\bin", "Machine")
|
||||
$Env:Path += ";c:\Program Files\Java\jdk1.8.0_131\bin"
|
||||
#Disable git credential manager, get more details in https://support.cloudbees.com/hc/en-us/articles/221046888-Build-Hang-or-Fail-with-Git-for-Windows
|
||||
git config --system --unset credential.helper
|
||||
|
||||
|
||||
# Install Maven
|
||||
|
|
|
@ -42,6 +42,8 @@ $webClient.DownloadFile($source, $destination)
|
|||
$proc = Start-Process -FilePath $destination -ArgumentList "/VERYSILENT" -Wait -PassThru
|
||||
$proc.WaitForExit()
|
||||
$Env:Path += ";C:\Program Files\Git\cmd"
|
||||
#Disable git credential manager, get more details in https://support.cloudbees.com/hc/en-us/articles/221046888-Build-Hang-or-Fail-with-Git-for-Windows
|
||||
git config --system --unset credential.helper
|
||||
|
||||
|
||||
# Install Slaves jar and connect via JNLP
|
||||
|
|
Загрузка…
Ссылка в новой задаче