Skip to content

Commit

Permalink
Merge pull request #772 from ministryofjustice/CHORE/e2e-failures-sla…
Browse files Browse the repository at this point in the history
…ck-alerts

CHORE: e2e failures slack alerts
  • Loading branch information
froddd authored Jul 8, 2024
2 parents 0574326 + 4538343 commit d40e590
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ parameters:
type: string
# Normally team specific alert channel e.g. hmpps_tech_alerts, syscon-alerts, dps_sed_alerts
# This is to avoid a general alert dumping ground that no-one then monitors
default: hmpps-cas-2-team-events
default: cas-events

releases-slack-channel:
type: string
# Normally dps-releases for most teams / projects
default: hmpps-cas-2-team-events
default: cas-events

node-version:
type: string
Expand Down Expand Up @@ -188,6 +188,10 @@ jobs:
- store_artifacts:
path: test-results
destination: test-results
- slack/notify:
event: fail
channel: << pipeline.parameters.alerts-slack-channel >>
template: basic_fail_1

workflows:
build-test-and-deploy:
Expand Down Expand Up @@ -267,19 +271,19 @@ workflows:
requires:
- request-preprod-approval
- request-prod-approval:
type: approval
requires:
- deploy_preprod
type: approval
requires:
- deploy_preprod
- hmpps/deploy_env:
name: deploy_prod
env: "prod"
slack_notification: true
slack_channel_name: << pipeline.parameters.releases-slack-channel >>
context:
- hmpps-common-vars
- hmpps-community-accommodation-tier-2-ui-prod
requires:
- request-prod-approval
name: deploy_prod
env: "prod"
slack_notification: true
slack_channel_name: << pipeline.parameters.releases-slack-channel >>
context:
- hmpps-common-vars
- hmpps-community-accommodation-tier-2-ui-prod
requires:
- request-prod-approval

security:
triggers:
Expand Down

0 comments on commit d40e590

Please sign in to comment.