Skip to content

Commit

Permalink
ci: remove slack notification (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
krtk6160 authored Jan 9, 2025
1 parent 574cad7 commit 23d562b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 52 deletions.
31 changes: 0 additions & 31 deletions ci/commons.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
branch: main
private_key: #@ data.values.github_private_key

- name: slack
type: slack-notification
source:
url: #@ data.values.slack_webhook_url

#@ end

#@ def resource_types():
Expand Down Expand Up @@ -100,30 +95,4 @@
repository: #@ data.values.docker_registry + "/honeymarker-resource"
tag: edge

- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
#@ end

---

#@ def slack_success_notification():
#@ success_url = "<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME| :zap: $BUILD_JOB_NAME> completed!"
put: slack
params:
channel: #@ data.values.slack_channel
username: #@ data.values.slack_username
icon_url: https://cl.ly/2F421Y300u07/concourse-logo-blue-transparent.png
text: #@ success_url
#@ end

#@ def slack_failure_notification():
#@ fail_url = "<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME| :face_with_symbols_on_mouth: $BUILD_JOB_NAME> failed!"
put: slack
params:
channel: #@ data.values.slack_channel
username: #@ data.values.slack_username
icon_url: https://cl.ly/2F421Y300u07/concourse-logo-blue-transparent.png
text: #@ fail_url
#@ end
18 changes: 1 addition & 17 deletions ci/gcp.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
#@ "testflight_cleanup_postgresql_job_name",
#@ "bump_repos_job_name",
#@ "build_pipeline_image_job_name",
#@ "modules_resource_name",
#@ "slack_success_notification",
#@ "slack_failure_notification")
#@ "modules_resource_name")

#@ def pipeline_image():
#@ return data.values.docker_registry + "/gcp-infra-pipeline"
Expand Down Expand Up @@ -82,8 +80,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/bootstrap.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_inception_job():
Expand Down Expand Up @@ -120,8 +116,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/inception.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_platform_job():
Expand Down Expand Up @@ -157,8 +151,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/platform.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_smoketest_job():
Expand Down Expand Up @@ -194,8 +186,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/smoketest.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_postgresql_job():
Expand Down Expand Up @@ -232,8 +222,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/postgresql.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_cleanup_job():
Expand Down Expand Up @@ -278,8 +266,6 @@ plan:
- in_parallel:
- { put: gcp-testflight-lock, params: { release: gcp-testflight-lock }}
- { put: gcp-testflight-uid, params: { bump: patch } }
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_testflight_cleanup_postgresql_job():
Expand Down Expand Up @@ -318,8 +304,6 @@ plan:
params: #@ gcp_testflight_task_params()
run:
path: pipeline-tasks/ci/tasks/gcp/teardown-postgresql.sh
- #@ slack_success_notification()
on_failure: #@ slack_failure_notification()
#@ end

#@ def gcp_bump_repos_job():
Expand Down
4 changes: 0 additions & 4 deletions ci/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ testflight_gcp_creds: ((testflight-gcp-creds.creds_json))
testflight_admins: ((testflight-admins.users_json))
testflight_ssh_private_key: ((testflight-ssh.ssh_private_key))
testflight_ssh_pub_key: ((testflight-ssh.ssh_public_key))

slack_channel: galoy-infra-notifications
slack_username: concourse
slack_webhook_url: ((galoy-infra-slack.api_url))

0 comments on commit 23d562b

Please sign in to comment.