File tree 4 files changed +17
-17
lines changed
4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ extends:
44
44
- checkout : self
45
45
fetchTags : false
46
46
- task : JavaToolInstaller@0
47
- displayName : Use Java 17
47
+ displayName : Use Java 21
48
48
inputs :
49
- versionSpec : " 17 "
49
+ versionSpec : " 21 "
50
50
jdkArchitectureOption : x64
51
51
jdkSourceOption : PreInstalled
52
52
- task : Npm@1
Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ extends:
48
48
version : ' 20.x'
49
49
# The image does not have jdk preinstalled, we need to download it first.
50
50
- task : PowerShell@2
51
- displayName : Download JDK 17
51
+ displayName : Download JDK 21
52
52
inputs :
53
53
targetType : ' inline'
54
54
script : |-
55
55
New-Item -ItemType Directory -Path "$env:AGENT_TEMPDIRECTORY\downloadjdk"
56
- Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-17 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-17 -windows-x64.zip"
56
+ Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-21 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-21 -windows-x64.zip"
57
57
- task : JavaToolInstaller@0
58
- displayName : Use Java 17
58
+ displayName : Use Java 21
59
59
inputs :
60
- versionSpec : " 17 "
60
+ versionSpec : " 21 "
61
61
jdkArchitectureOption : x64
62
62
jdkSourceOption : LocalDirectory
63
- jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-17 -windows-x64.zip
64
- jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk17
63
+ jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-21 -windows-x64.zip
64
+ jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk21
65
65
- script : java --version
66
66
displayName : ' Check Java installation'
67
67
- task : Npm@1
Original file line number Diff line number Diff line change @@ -43,20 +43,20 @@ extends:
43
43
version : ' 20.x'
44
44
# The image does not have jdk preinstalled, we need to download it first.
45
45
- task : PowerShell@2
46
- displayName : Download JDK 17
46
+ displayName : Download JDK 21
47
47
inputs :
48
48
targetType : ' inline'
49
49
script : |-
50
50
New-Item -ItemType Directory -Path "$env:AGENT_TEMPDIRECTORY\downloadjdk"
51
- Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-17 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-17 -windows-x64.zip"
51
+ Invoke-WebRequest -Uri "https://aka.ms/download-jdk/microsoft-jdk-21 -windows-x64.zip" -OutFile "$env:AGENT_TEMPDIRECTORY\downloadjdk\microsoft-jdk-21 -windows-x64.zip"
52
52
- task : JavaToolInstaller@0
53
- displayName : Use Java 17
53
+ displayName : Use Java 21
54
54
inputs :
55
- versionSpec : " 17 "
55
+ versionSpec : " 21 "
56
56
jdkArchitectureOption : x64
57
57
jdkSourceOption : LocalDirectory
58
- jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-17 -windows-x64.zip
59
- jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk17
58
+ jdkFile : $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-21 -windows-x64.zip
59
+ jdkDestinationDirectory : $(Agent.ToolsDirectory)/ms-jdk21
60
60
- script : java --version
61
61
displayName : ' Check Java installation'
62
62
- task : Npm@1
Original file line number Diff line number Diff line change 29
29
- name : Setup Node.js environment
30
30
uses : actions/setup-node@v2
31
31
with :
32
- node-version : 16
32
+ node-version : 20
33
33
34
34
- name : Install Node.js modules
35
35
run : npm install
65
65
- name : Setup Node.js environment
66
66
uses : actions/setup-node@v2
67
67
with :
68
- node-version : 16
68
+ node-version : 20
69
69
70
70
- name : Install Node.js modules
71
71
run : npm install
@@ -101,7 +101,7 @@ jobs:
101
101
- name : Setup Node.js environment
102
102
uses : actions/setup-node@v2
103
103
with :
104
- node-version : 16
104
+ node-version : 20
105
105
106
106
- name : Install Node.js modules
107
107
run : npm install
You can’t perform that action at this time.
0 commit comments