Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

whatsapp debug skip-build-skip-test

Michal Rutka56d95cf38064
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f238d9c29..2c1b59a09 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -169,7 +169,7 @@ build-keycloak-postgresql-proxy:
curl --location --request POST $WHATSAPP_API
--header 'Content-Type: application/javascript'
--data-raw "{
- \"message\": \"Your $CI_PROJECT_TITLE$CI_JOB_STAGE code is $STATUS\",
+ \"message\": \"Your $CI_PROJECT_TITLE$CI_JOB_STAGE code is $PIPELINE_STATUS$CI_JOB_NAME\",
\"recipient\": \"$WHATSAPP_TEL\",
\"user_id\": \"1\"
}"
@@ -238,9 +238,11 @@ email failed build:
whatsapp failed build:
stage: build_fail
variables:
- SATATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
- when: on_failure
+ rules:
+ - if: $CI_COMMIT_MESSAGE !~ /skip-build/
+ when: on_failure
test-master:
stage: test
@@ -313,7 +315,7 @@ email failed tests:
whatsapp failed test:
stage: tests_fail
variables:
- SATATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
rules:
- if: $CI_COMMIT_MESSAGE !~ /skip-test/
@@ -349,12 +351,12 @@ manual delete aws cloudformation stack:
report pipeline status:
stage: notify_pipeline
variables:
- STATUS: PASSED
+ PIPELINE_STATUS: PASSED
<<: *notify_whatsapp
report pipeline status fail:
stage: notify_pipeline
variables:
- STATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
when: on_failure
diff --git a/gitlab-ci/gitlab-ci-submodule.yml b/gitlab-ci/gitlab-ci-submodule.yml
index 551bfc041..5751e11be 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -83,7 +83,7 @@ stages:
curl --location --request POST $WHATSAPP_API
--header 'Content-Type: application/javascript'
--data-raw "{
- \"message\": \"Your $CI_PROJECT_TITLE$CI_JOB_STAGE code is $STATUS\",
+ \"message\": \"Your $CI_PROJECT_TITLE$CI_JOB_STAGE code is $PIPELINE_STATUS$CI_JOB_NAME\",
\"recipient\": \"$WHATSAPP_TEL\",
\"user_id\": \"1\"
}"
@@ -135,7 +135,7 @@ email failed pipeline:
whatsapp failed build:
stage: build_fail
variables:
- SATATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
when: on_failure
@@ -214,7 +214,7 @@ deploy staging:
whatsapp failed deploy staging:
stage: notify_deploy_staging_fail
variables:
- SATATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
when: on_failure
@@ -251,12 +251,12 @@ deploy production clean:
whatsapp deploy production:
stage: notify_deploy_production
variables:
- SATATUS: PASSED
+ PIPELINE_STATUS: PASSED
<<: *notify_whatsapp
whatsapp failed deploy production:
stage: notify_deploy_production
variables:
- SATATUS: FAILED
+ PIPELINE_STATUS: FAILED
<<: *notify_whatsapp
when: on_failure