From 029b8a1d070cf14aa60679941a689f50a722b31a Mon Sep 17 00:00:00 2001 From: arshamparity <75425316+arshamparity@users.noreply.github.com> Date: Thu, 20 May 2021 16:27:16 +0300 Subject: [PATCH] add trigger for monitoring job in cloud-infra repository (#8831) * add trigger for monitoring job in cloud-infra repository * remove substrate-alerting-rules.env file for artifact:reports:dotenv * add allow failure to trigger-cloud-infra-monitoring job * remove strategy=depend from the trigger pipeline Co-authored-by: Arsham --- substrate/.gitlab-ci.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 9de2f79b03..02a81043a7 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -671,21 +671,13 @@ deploy-prometheus-alerting-rules: needs: - job: test-prometheus-alerting-rules artifacts: false - interruptible: true - retry: 1 - tags: - - kubernetes-parity-build - image: paritytech/kubetools:latest - environment: - name: parity-mgmt-polkadot-alerting + allow_failure: true + trigger: + project: parity/infrastructure/cloud-infra variables: - NAMESPACE: monitoring - PROMETHEUSRULE: prometheus-k8s-rules-polkadot-alerting - RULES: .maintain/monitoring/alerting-rules/alerting-rules.yaml - script: - - echo "deploying prometheus alerting rules" - - kubectl -n ${NAMESPACE} patch prometheusrule ${PROMETHEUSRULE} - --type=merge --patch "$(sed 's/^/ /;1s/^/spec:\n/' ${RULES})" + SUBSTRATE_CI_COMMIT_NAME: "${CI_COMMIT_REF_NAME}" + SUBSTRATE_CI_COMMIT_REF: "${CI_COMMIT_SHORT_SHA}" + UPSTREAM_TRIGGER_PROJECT: "${CI_PROJECT_PATH}" rules: - if: $CI_PIPELINE_SOURCE == "pipeline" when: never