diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52d90feb6..6e01161c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ build: curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "pending", "description": "Gitlab-CI is building the commit", "context": "gitlab-ci"}' - https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_BUILD_REF || true + https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true script: - make - make -j 12 check @@ -27,7 +27,7 @@ update-status-fail: when: on_failure script: - >- - curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "failure", "description": "Gitlab-CI build failed, please contact @cdecker for details about build #$CI_BUILD_ID.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_BUILD_REF || true + curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "failure", "description": "Gitlab-CI build failed, please contact @cdecker for details about build #$CI_JOB_ID.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true update-status-success: image: tutum/curl @@ -35,4 +35,4 @@ update-status-success: when: on_success script: - >- - curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "success", "description": "Gitlab-CI build succeeded.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_BUILD_REF || true + curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "success", "description": "Gitlab-CI build succeeded.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true