Skip to content

Commit

Permalink
test #4
Browse files Browse the repository at this point in the history
  • Loading branch information
RosenbergYehuda committed Sep 10, 2023
1 parent 48299df commit b9d0268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/.gitlab-ci.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Tests/scripts/gitlab_slack_notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9d0268

Please sign in to comment.