Skip to content

Commit

Permalink
Merge pull request #1269 from qdraw/feature/202310_jdk17
Browse files Browse the repository at this point in the history
Feature/202310 jdk17
  • Loading branch information
qdraw authored Oct 31, 2023
2 parents a764316 + 314b5c3 commit 9fd4c8f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions pipelines/azure/develop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ stages:
- checkout: self
# fetchDepth: 1 - disable for sonarqube

- template: /pipelines/azure/steps/use_jdk_powershell.yml

- template: /pipelines/azure/steps/use_dotnet_version.yml

- template: /pipelines/azure/steps/build_clientapp.yml
Expand Down
8 changes: 0 additions & 8 deletions pipelines/azure/steps/use_jdk11_powershell.yml

This file was deleted.

10 changes: 10 additions & 0 deletions pipelines/azure/steps/use_jdk_powershell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- task: PowerShell@2
displayName: "Use JDK17 by default (needed for sonarqube)"
inputs:
targetType: 'inline'
script: |
$jdkPath = $env:JAVA_HOME_17_X64
write-host "JDK Path" $jdkPath
Write-Host "##vso[task.setvariable variable=JAVA_HOME]$jdkPath"
Write-Host "##vso[task.setvariable variable=PATH]$jdkPath/bin:$(PATH)"

0 comments on commit 9fd4c8f

Please sign in to comment.