Commit 90b0ee6f authored by Albert Salim's avatar Albert Salim

Add commit notes URL to scheduled qa job slack notification

parent a54ee323
...@@ -10,8 +10,10 @@ schedule:package-and-qa:notify-success: ...@@ -10,8 +10,10 @@ schedule:package-and-qa:notify-success:
extends: extends:
- .only-canonical-schedules - .only-canonical-schedules
- .notify - .notify
before_script:
- export COMMIT_NOTES_URL="https://$CI_SERVER_HOST/$CI_PROJECT_PATH/commit/$CI_COMMIT_SHA#notes-list"
script: script:
- 'scripts/notify-slack qa-master ":tada: Scheduled QA against master passed! :tada: See $CI_PIPELINE_URL." ci_passing' - 'scripts/notify-slack qa-master ":tada: Scheduled QA against master passed! :tada: See $CI_PIPELINE_URL. For downstream pipelines, see $COMMIT_NOTES_URL" ci_passing'
needs: ["schedule:package-and-qa"] needs: ["schedule:package-and-qa"]
when: on_success when: on_success
...@@ -19,7 +21,9 @@ schedule:package-and-qa:notify-failure: ...@@ -19,7 +21,9 @@ schedule:package-and-qa:notify-failure:
extends: extends:
- .only-canonical-schedules - .only-canonical-schedules
- .notify - .notify
before_script:
- export COMMIT_NOTES_URL="https://$CI_SERVER_HOST/$CI_PROJECT_PATH/commit/$CI_COMMIT_SHA#notes-list"
script: script:
- 'scripts/notify-slack qa-master ":skull_and_crossbones: Scheduled QA against master failed! :skull_and_crossbones: See $CI_PIPELINE_URL." ci_failing' - 'scripts/notify-slack qa-master ":skull_and_crossbones: Scheduled QA against master failed! :skull_and_crossbones: See $CI_PIPELINE_URL. For downstream pipelines, see $COMMIT_NOTES_URL" ci_failing'
needs: ["schedule:package-and-qa"] needs: ["schedule:package-and-qa"]
when: on_failure when: on_failure
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment