diff --git a/.azure/scripts/jdk.yml b/.azure/scripts/jdk.yml index 39f3e329..fcdaa327 100644 --- a/.azure/scripts/jdk.yml +++ b/.azure/scripts/jdk.yml @@ -9,6 +9,11 @@ steps: versionSpec: ${{ parameters.version }} jdkArchitectureOption: 'x64' jdkSourceOption: 'PreInstalled' - - bash: exit 1 +# FIXME: we'd want to stop the execution of the whole pipeline, if the JDK could not be set. +# - bash: exit 1 +# displayName: JDK ${{ parameters.version }} could not be set. +# condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues') + - bash: | + echo AGENT_JOBSTATUS = $AGENT_JOBSTATUS + if [[ "$AGENT_JOBSTATUS" == "SucceededWithIssues" ]]; then exit 1; fi displayName: JDK ${{ parameters.version }} could not be set. - condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')