diff --git a/.gitlab/ci/.gitlab-ci.global.yml b/.gitlab/ci/.gitlab-ci.global.yml index 34f12ccd3768..8c504f2175e9 100644 --- a/.gitlab/ci/.gitlab-ci.global.yml +++ b/.gitlab/ci/.gitlab-ci.global.yml @@ -259,7 +259,7 @@ extends: - .unittests-and-lint-settings script: - - python3 ./Tests/scripts/gitlab_slack_notifier.py -ch "test_slack_notifier_when_master_is_broken" + - python3 ./Tests/scripts/gitlab_slack_notifier.py - section_start "Test Infrastructure" - python3 -m pytest ./Tests/scripts/infrastructure_tests/ -v --disable-warnings - python3 -m pytest ./Tests/Marketplace/Tests/ -v --disable-warnings diff --git a/Tests/scripts/gitlab_slack_notifier.py b/Tests/scripts/gitlab_slack_notifier.py index 423cca97c164..6f326e545a88 100644 --- a/Tests/scripts/gitlab_slack_notifier.py +++ b/Tests/scripts/gitlab_slack_notifier.py @@ -291,12 +291,12 @@ def main(): ci_token = options.ci_token project_id = options.gitlab_project_id pipeline_id = options.pipeline_id - triggering_workflow = options.triggering_workflow # ci workflow type that is triggering the slack notifier + #triggering_workflow = options.triggering_workflow # ci workflow type that is triggering the slack notifier slack_channel = options.slack_channel gitlab_client = gitlab.Gitlab(server_url, private_token=ci_token) pipeline_url, pipeline_failed_jobs = collect_pipeline_data(gitlab_client, project_id, pipeline_id) #slack_msg_data = construct_slack_msg(triggering_workflow, pipeline_url, pipeline_failed_jobs) - slack_msg_data = construct_slack_msg("tetst", "https://www.google.com", "test") + slack_msg_data = "tetst" slack_client = WebClient(token=slack_token) slack_client.chat_postMessage( channel=slack_channel, attachments=slack_msg_data, username=SLACK_USERNAME