Skip to content

Commit

Permalink
[ci] condition does not work... another shot
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Aug 20, 2024
1 parent 155abab commit 27557f3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .azure/scripts/jdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 27557f3

Please sign in to comment.