Print job doc URL on job failure
This commit is contained in:
parent
611764417b
commit
0c6d24e373
1 changed files with 14 additions and 2 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -191,8 +191,20 @@ jobs:
|
|||
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
|
||||
|
||||
- name: run the build
|
||||
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
|
||||
run: src/ci/scripts/run-build-from-ci.sh 2>&1
|
||||
run: |
|
||||
set +e
|
||||
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
|
||||
src/ci/scripts/run-build-from-ci.sh 2>&1
|
||||
STATUS=$?
|
||||
set -e
|
||||
|
||||
if [[ "$STATUS" -ne 0 && -n "$CI_JOB_DOC_URL" ]]; then
|
||||
echo "****************************************************************************"
|
||||
echo "To find more information about this job, visit the following URL:"
|
||||
echo "$CI_JOB_DOC_URL"
|
||||
echo "****************************************************************************"
|
||||
fi
|
||||
exit ${STATUS}
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue