-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible,win: fix temurin17 update breaking jenkins
Fixes: #3548
- Loading branch information
1 parent
25bcaef
commit da376e3
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
:: Temurin17 can only be safely upgraded outside of the running Jenkin loop. | ||
:: windows-update-reboot job will make sure machine is rebooted when needed. | ||
choco upgrade Temurin17 -y | ||
call refreshenv | ||
|
||
C: | ||
cd \ | ||
:start | ||
curl -L {{ jenkins_agent_jar }} -o {{ agent_path }} | ||
java -Dhudson.remoting.Launcher.pingIntervalSec=10 -jar {{ agent_path }} -jnlpUrl {{ jenkins_url }}/computer/{{ inventory_hostname }}/jenkins-agent.jnlp -secret {{ secret }} | ||
curl -L https://ci.nodejs.org/jnlpJars/agent.jar -o C:\jenkins_agent.jar | ||
java -Dhudson.remoting.Launcher.pingIntervalSec=10 -jar C:\jenkins_agent.jar -jnlpUrl https://ci.nodejs.org/computer/test-rackspace-win2019_vs2019-x64-4/jenkins-agent.jnlp -secret af925a1fec6e8aa4ff69aaa40471d074a2f952c1a01724e377358a155cbdc7af | ||
echo Restarting Jenkins... | ||
goto start |