Post a message to slack after a successful nightly build. (#1046)

This uses a script on our build host to do the actual posting.
I dont have access to CircleCI to do it from there.
This commit is contained in:
Tim Wilkinson 2023-12-29 10:51:56 -08:00 committed by GitHub
parent b6dfba160e
commit dc3aa30eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -241,6 +241,14 @@ jobs:
name: Run AFS collector
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c '${DOWNLOADS_DOCROOT}/afs/misc/collect.py ${DOWNLOADS_DOCROOT} ${DOWNLOADS_DOCROOT}/afs/www'"
post_to_slack:
machine:
image: ubuntu-2004:2023.02.1
steps:
- run:
name: Post to Slack
command: ssh ${SSH_USER}@${SSH_HOST} "./post-nightly.sh $(printf '%(%Y%m%d)T')-$(echo ${CIRCLE_SHA1} | cut -c '-7')"
no_action:
machine:
image: ubuntu-2004:2023.02.1
@ -280,6 +288,9 @@ workflows:
- save_build_info:
requires:
- process_artifacts_nightly
- post_to_slack:
requires:
- afs_collector
manual_build:
when: