Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,26 @@ extends:
steps:
- checkout: self
fetchTags: false
# The image does not have jdk preinstalled, we need to download it first.
- task: Bash@3
displayName: Download JDK 25
inputs:
targetType: inline
script: |-
mkdir -p "$(Agent.TempDirectory)/downloadjdk"
curl --fail --location --silent --show-error \
"https://aka.ms/download-jdk/microsoft-jdk-25-linux-x64.tar.gz" \
--output "$(Agent.TempDirectory)/downloadjdk/microsoft-jdk-25-linux-x64.tar.gz"
- task: JavaToolInstaller@0
displayName: Use Java 25
inputs:
versionSpec: "25"
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
jdkSourceOption: LocalDirectory
jdkFile: $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-25-linux-x64.tar.gz
jdkDestinationDirectory: $(Agent.ToolsDirectory)/ms-jdk25
- script: java --version
displayName: 'Check Java installation'
- task: NodeTool@0
displayName: Use Node 20.x
inputs:
Expand All @@ -93,12 +107,26 @@ extends:
steps:
- checkout: self
fetchTags: false
# The image does not have jdk preinstalled, we need to download it first.
- task: Bash@3
displayName: Download JDK 25
inputs:
targetType: inline
script: |-
mkdir -p "$(Agent.TempDirectory)/downloadjdk"
curl --fail --location --silent --show-error \
"https://aka.ms/download-jdk/microsoft-jdk-25-linux-x64.tar.gz" \
--output "$(Agent.TempDirectory)/downloadjdk/microsoft-jdk-25-linux-x64.tar.gz"
- task: JavaToolInstaller@0
displayName: Use Java 25
inputs:
versionSpec: "25"
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
jdkSourceOption: LocalDirectory
jdkFile: $(Agent.TempDirectory)/downloadjdk/microsoft-jdk-25-linux-x64.tar.gz
jdkDestinationDirectory: $(Agent.ToolsDirectory)/ms-jdk25
- script: java --version
displayName: 'Check Java installation'
- task: NodeTool@0
displayName: Use Node 20.x
inputs:
Expand Down
Loading