Skip to content

Commit 71937ca

Browse files
committed
include status messages
1 parent c55795c commit 71937ca

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.gitlab-ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,39 @@ stages:
2222
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
2323
-H "X-GitHub-Api-Version: 2022-11-28" \
2424
"https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}" \
25-
-d "{\"state\":\"${CI_JOB_NAME}\",\"target_url\":\"${CI_PIPELINE_URL}\",\"context\":\"${STATUS_NAME}\"}"
25+
-d "{\"state\":\"${CI_JOB_NAME}\",\"description\":\"${STATUS_MESSAGE}\",\"target_url\":\"${CI_PIPELINE_URL}\",\"context\":\"${STATUS_NAME}\"}"
2626
2727
pending:
2828
stage: .pre
2929
extends:
3030
- .report-status
31+
script:
32+
- echo "STATUS_MESSAGE='Waiting for approval to run on NERSC system...'" > .env
33+
artifacts:
34+
reports:
35+
dotenv: .env
3136

3237
success:
3338
stage: .post
3439
extends:
3540
- .report-status
41+
script:
42+
- echo "STATUS_MESSAGE='Successfully passed all tests on NERSC system!'" > .env
43+
artifacts:
44+
reports:
45+
dotenv: .env
3646

3747
failure:
3848
stage: .post
3949
extends:
4050
- .report-status
4151
rules:
4252
- when: on_failure
53+
script:
54+
- echo "STATUS_MESSAGE='Failed to pass all tests on NERSC system!'" > .env
55+
artifacts:
56+
reports:
57+
dotenv: .env
4358

4459
perlmutter-no-cache-build:
4560
stage: build

0 commit comments

Comments
 (0)