Skip to content

Commit

Permalink
Update .gitlab-ci.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Raffenetti committed Feb 15, 2024
1 parent 60120e5 commit 3d0392a
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@ variables:
ANL_POLARIS_SCHEDULER_PARAMETERS: ""
ANL_POLARIS_PROJECT_SERVICE_USER: "mpich"

.report_status:
variables:
STATUS_PROJECT: raffenet/libfabric
STATUS_NAME: example
script:
- curl -X POST -H @${GITHUB_CURL_HEADERS} https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}?state=${CI_JOB_NAME}\&context=${STATUS_NAME}\&target_url=${CI_PIPELINE_URL}
environment:
name: reporting-github
dependencies: []

pending:
stage: .pre
extends:
- .report-status

success:
stage: .post
extends:
- .report-status

failed:
stage: .post
extends:
- .report-status
rules:
- when: on_failure

# Reference this hidden key with the keyword extends
# and the contents will be merged.
# Source: https://docs.gitlab.com/ee/ci/yaml/#extends
Expand Down Expand Up @@ -47,5 +74,4 @@ job-build-libs:
extends: .generic-login-shell
stage: build
script:
- /bin/true
- exit 0
- /bin/true

0 comments on commit 3d0392a

Please sign in to comment.