Commit 7ef20f4a authored by Albert Salim's avatar Albert Salim Committed by Lin Jen-Shin

Set $COMMIT_NOTES_URL within `script:`

Doing it in `before_script:` would
override the extended `before_script:` in `.notify`
parent d8f2eb01
...@@ -10,8 +10,8 @@ schedule:package-and-qa:notify-success: ...@@ -10,8 +10,8 @@ schedule:package-and-qa:notify-success:
extends: extends:
- .only-canonical-schedules - .only-canonical-schedules
- .notify - .notify
before_script: variables:
- export COMMIT_NOTES_URL="https://$CI_SERVER_HOST/$CI_PROJECT_PATH/commit/$CI_COMMIT_SHA#notes-list" 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. For downstream pipelines, see $COMMIT_NOTES_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"]
...@@ -21,8 +21,8 @@ schedule:package-and-qa:notify-failure: ...@@ -21,8 +21,8 @@ schedule:package-and-qa:notify-failure:
extends: extends:
- .only-canonical-schedules - .only-canonical-schedules
- .notify - .notify
before_script: variables:
- export COMMIT_NOTES_URL="https://$CI_SERVER_HOST/$CI_PROJECT_PATH/commit/$CI_COMMIT_SHA#notes-list" 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. For downstream pipelines, see $COMMIT_NOTES_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"]
......
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