From 1a793db442710e51f338af50f73ec0a3760a81da Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 10 Oct 2022 13:08:25 -0400 Subject: [PATCH] Add new node version 14.20.0 to Windows Agent Signed-off-by: Peter Zhu --- lib/compute/agent-nodes.ts | 2 +- packer/scripts/windows/scoop-install-commons.ps1 | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/compute/agent-nodes.ts b/lib/compute/agent-nodes.ts index 9d221732..12c18a58 100644 --- a/lib/compute/agent-nodes.ts +++ b/lib/compute/agent-nodes.ts @@ -146,7 +146,7 @@ export class AgentNodes { maxTotalUses: -1, minimumNumberOfSpareInstances: 2, numExecutors: 1, - amiId: 'ami-0e713f57930800922', + amiId: 'ami-0e6529e2a3c55ac1a', initScript: 'echo', remoteFs: 'C:\\Users\\Administrator\\jenkins', }; diff --git a/packer/scripts/windows/scoop-install-commons.ps1 b/packer/scripts/windows/scoop-install-commons.ps1 index 0a637f46..454a5c5f 100644 --- a/packer/scripts/windows/scoop-install-commons.ps1 +++ b/packer/scripts/windows/scoop-install-commons.ps1 @@ -89,12 +89,14 @@ mvn --version # Install nvm (the last in order is default as nvm-win does not allow nvm alias/use default ) scoop install nvm -nvm install 10.24.1 -nvm use 10.24.1 -npm install -g yarn -nvm install 14.19.1 -nvm use 14.19.1 -npm install -g yarn +$nodeVersionList = "10.24.1","14.19.1","14.20.0" +Foreach ($nodeVersion in $nodeVersionList) +{ + $nodeVersion + nvm install $nodeVersion + nvm use $nodeVersion + npm install -g yarn +} # Install ruby24 scoop install ruby24