From 26e29d49ae397b6d1039c78db7a8d88b98f0658c Mon Sep 17 00:00:00 2001 From: Nat Efrat-Henrici <60049837+nefrathenrici@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:44:53 -0700 Subject: [PATCH] Add slack message for longrun status (#362) --- .buildkite/longruns/pipeline.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.buildkite/longruns/pipeline.yml b/.buildkite/longruns/pipeline.yml index b2d0db5cd..c83a34c3b 100644 --- a/.buildkite/longruns/pipeline.yml +++ b/.buildkite/longruns/pipeline.yml @@ -26,3 +26,13 @@ steps: key: "cpu_unittests" command: - "julia --project=test --color=yes test/aerosol_activation_emulators.jl" + + - wait + + - label: ":envelope: Slack report" + command: | + if [ $$(buildkite-agent step get "outcome" --step "cpu_unittests") == "passed" ]; then + slack-message -c "#microphysics-dev" -x "CloudMicrophysics buildkite-longruns success" + else + slack-message -c "#microphysics-dev" -x "CloudMicrophysics buildkite-longruns failure" + fi \ No newline at end of file