-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Azure CI to latest vmImage (#56)
* Update Azure CI to latest vmImage Signed-off-by: see-quick <maros.orsak159@gmail.com> * explicit path to jdk Signed-off-by: see-quick <maros.orsak159@gmail.com> * use preinstalled java Signed-off-by: see-quick <maros.orsak159@gmail.com> * correct path Signed-off-by: see-quick <maros.orsak159@gmail.com> * update to Java 11 Signed-off-by: see-quick <maros.orsak159@gmail.com> * update to 17 Signed-off-by: see-quick <maros.orsak159@gmail.com> * build on both java versions Signed-off-by: see-quick <maros.orsak159@gmail.com> * update pom.xml Signed-off-by: see-quick <maros.orsak159@gmail.com> * update pom.xml (fail on warn false, + change default compiler to Java 11 Signed-off-by: see-quick <maros.orsak159@gmail.com> --------- Signed-off-by: see-quick <maros.orsak159@gmail.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
# Step to setup JAVA on the agent | ||
# We use openjdk-8 | ||
# Step to configure JAVA on the agent | ||
parameters: | ||
- name: JDK_PATH | ||
default: '/usr/lib/jvm/java-8-openjdk-amd64' | ||
- name: JDK_VERSION | ||
default: '8' | ||
default: '17' | ||
steps: | ||
|
||
- bash: sudo apt-get update | ||
displayName: 'Update package list' | ||
|
||
- bash: sudo apt-get install openjdk-8-jdk | ||
displayName: 'Install openjdk8' | ||
|
||
- bash: | | ||
echo "##vso[task.setvariable variable=JAVA_VERSION_BUILD]1.8" | ||
echo "##vso[task.setvariable variable=JAVA_VERSION]1.8.0" | ||
displayName: 'Setup JAVA_VERSION=1.8' | ||
- bash: | | ||
echo "##vso[task.setvariable variable=JAVA_HOME]$(JDK_PATH)" | ||
echo "##vso[task.setvariable variable=JAVA_HOME__X64]$(JDK_PATH)" | ||
echo "##vso[task.setvariable variable=PATH]$(jdk_path)/bin:$(PATH)" | ||
displayName: 'Setup JAVA_HOME' | ||
- task: JavaToolInstaller@0 | ||
inputs: | ||
versionSpec: $(JDK_VERSION) | ||
jdkArchitectureOption: 'x64' | ||
jdkSourceOption: 'PreInstalled' | ||
displayName: 'Configure Java' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters