Skip to content

Commit afce7e3

Browse files
display git status when checkout fails (#21389)
1 parent 2e14fdc commit afce7e3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,20 @@ jobs:
5454
name: 'ubuntu_20_04'
5555
demands: assignment -equals default
5656
steps:
57+
- checkout: self
58+
- bash: |
59+
echo "The checkout step failed. Displaying Git status to identify unstaged changes:"
60+
set -euo pipefail
61+
cd sdk
62+
git status
63+
displayName: 'Show Git Status on Checkout Failure'
64+
condition: failed()
5765
- bash: |
5866
set -euo pipefail
5967
cd sdk
6068
eval "$(./dev-env/bin/dade-assist)"
6169
./ci/docs-sphinx-build.sh
70+
condition: succeeded()
6271
6372
- job: Linux
6473
dependsOn:

0 commit comments

Comments
 (0)