Skip to content

Commit

Permalink
ansible,win: fix temurin17 update breaking jenkins
Browse files Browse the repository at this point in the history
Fixes: #3548
  • Loading branch information
StefanStojanovic committed Dec 20, 2023
1 parent 25bcaef commit da376e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ansible/roles/jenkins-worker-windows/templates/jenkins.bat
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

0 comments on commit da376e3

Please sign in to comment.