From 6bf2589249e34e26237f84ef9eeeee43e4f28cd3 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Wed, 20 Dec 2023 15:47:47 +0100 Subject: [PATCH] ansible,win: fix temurin17 update breaking jenkins Fixes: https://github.com/nodejs/build/issues/3548 --- ansible/roles/jenkins-worker-windows/templates/jenkins.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/jenkins-worker-windows/templates/jenkins.bat b/ansible/roles/jenkins-worker-windows/templates/jenkins.bat index 860c0ff15..5b36a8b5c 100644 --- a/ansible/roles/jenkins-worker-windows/templates/jenkins.bat +++ b/ansible/roles/jenkins-worker-windows/templates/jenkins.bat @@ -1,3 +1,8 @@ +:: 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