Skip to content

Commit

Permalink
Merge pull request #2007 from DataDog/xgouchet/mobile-sdk-ops
Browse files Browse the repository at this point in the history
Redirect slack notif to mobile-sdk-ops channel
  • Loading branch information
xgouchet authored Apr 24, 2024
2 parents 43e9cfb + 0d2f81e commit cff8b54
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -582,18 +582,39 @@ publish:release-rum:

# SLACK NOTIFICATIONS

notify:release:
notify:publish-develop-success:
extends: .slack-notifier-base
stage: notify
when: on_success
only:
- develop
script:
- 'MESSAGE_TEXT=":package: $CI_PROJECT_NAME develop $CI_COMMIT_TAG: Snapshot published on :maven:, Sample app published on :synthetics:"'
- postmessage "#mobile-sdk-ops" "$MESSAGE_TEXT"

notify:publish-develop-failure:
extends: .slack-notifier-base
stage: notify
when: on_failure
only:
- develop
script:
- BUILD_URL="$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID"
- 'MESSAGE_TEXT=":status_alert: $CI_PROJECT_NAME $CI_COMMIT_TAG develop pipeline <$BUILD_URL|$COMMIT_MESSAGE> failed."'
- postmessage "#mobile-sdk-ops" "$MESSAGE_TEXT"

notify:publish-release-success:
extends: .slack-notifier-base
stage: notify
when: on_success
only:
- tags
script:
- MAVEN_URL="https://search.maven.org/artifact/com.datadoghq/dd-sdk-android-core/$CI_COMMIT_TAG/aar"
- 'MESSAGE_TEXT=":package: $CI_PROJECT_NAME $CI_COMMIT_TAG published on :maven: $MAVEN_URL"'
- postmessage "#mobile-rum" "$MESSAGE_TEXT"
- 'MESSAGE_TEXT=":rocket: $CI_PROJECT_NAME $CI_COMMIT_TAG published on :maven: $MAVEN_URL"'
- postmessage "#mobile-sdk-ops" "$MESSAGE_TEXT"

notify:failure:
notify:publish-release-failure:
extends: .slack-notifier-base
stage: notify
when: on_failure
Expand All @@ -602,7 +623,7 @@ notify:failure:
script:
- BUILD_URL="$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID"
- 'MESSAGE_TEXT=":status_alert: $CI_PROJECT_NAME $CI_COMMIT_TAG publish pipeline <$BUILD_URL|$COMMIT_MESSAGE> failed."'
- postmessage "#mobile-rum" "$MESSAGE_TEXT"
- postmessage "#mobile-sdk-ops" "$MESSAGE_TEXT"

notify:dogfood-app:
tags: [ "arch:amd64" ]
Expand Down

0 comments on commit cff8b54

Please sign in to comment.