From 27557f305c282eadac0ea6d0e03d7cb326531ab7 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Tue, 20 Aug 2024 11:49:48 +0200 Subject: [PATCH] [ci] condition does not work... another shot --- .azure/scripts/jdk.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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')