From: Frank Brehm Date: Tue, 12 Jul 2022 15:16:19 +0000 (+0200) Subject: Disabling Notification jobs in .gitlab-ci.yml X-Git-Tag: 0.4.2^2 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=3634097fa81e44ba40aadc74e89e83bd7adc46be;p=pixelpark%2Fpp-admin-tools.git Disabling Notification jobs in .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9b916b..d5c9425 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -442,32 +442,32 @@ Deploy packages EL8: # - 'Deploy packages EL7' # - 'Deploy packages EL8' -# --------------------------- -Notify Success: - stage: notify - extends: - - '.notify-rules' - allow_failure: true - script: | - mailbody="Module ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME} (${CI_COMMIT_REF_NAME}): " - mailbody+="all checks successful\nCommiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>\n" - mailbody+="Commiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>" - subject="Gitlab-CI: Python module pp-admintools" - echo -e "${mailbody}" | mailx -s "${subject}" -r "${SENDER_ADDRESS}" "${NOTIFY_ADDRESS}" +# # --------------------------- +# Notify Success: +# stage: notify +# extends: +# - '.notify-rules' +# allow_failure: true +# script: | +# mailbody="Module ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME} (${CI_COMMIT_REF_NAME}): " +# mailbody+="all checks successful\nCommiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>\n" +# mailbody+="Commiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>" +# subject="Gitlab-CI: Python module pp-admintools" +# echo -e "${mailbody}" | mailx -s "${subject}" -r "${SENDER_ADDRESS}" "${NOTIFY_ADDRESS}" -# --------------------------- -Notify Error: - stage: notify - extends: - - '.notify-rules' - allow_failure: true - when: on_failure - script: | - mailbody="Error in module ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME} (${CI_COMMIT_REF_NAME})\n" - mailbody+="Please check ${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}\n\n" - mailbody+="Commiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>" - subject="Gitlab-CI error for Python module pp-admintools" - echo -e "${mailbody}" | mailx -s "${subject}" -r "${SENDER_ADDRESS}" "${NOTIFY_ADDRESS}" +# # --------------------------- +# Notify Error: +# stage: notify +# extends: +# - '.notify-rules' +# allow_failure: true +# when: on_failure +# script: | +# mailbody="Error in module ${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME} (${CI_COMMIT_REF_NAME})\n" +# mailbody+="Please check ${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}\n\n" +# mailbody+="Commiter: ${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>" +# subject="Gitlab-CI error for Python module pp-admintools" +# echo -e "${mailbody}" | mailx -s "${subject}" -r "${SENDER_ADDRESS}" "${NOTIFY_ADDRESS}" # vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list