Skip to content

Commit

Permalink
try url pass
Browse files Browse the repository at this point in the history
  • Loading branch information
LenkaNovak committed Apr 6, 2024
1 parent b5aad97 commit 6cd1954
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .buildkite/longruns/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,18 +315,15 @@ steps:

- label: ":envelope: Slack report: build_history"
command:
- |
slack-upload -c "#coupler-report" -f build_history.html -m html -n build_history -x "Overall job performance"
BUILD_HISTORY_LINK= <https://github.com/CliMA/ClimaCoupler.jl|ClimaCoupler.jl>
echo "Interactive overall job performance history $$BUILD_HISTORY_LINK"
slack-message -c "#coupler-report" -x "Interactive overall job performance history $$BUILD_HISTORY_LINK"
slack-message -c "#coupler-report" -x "Interactive overall job performance history $$BUILD_HISTORY_LINK"
- slack-upload -c "#coupler-report" -f build_history.html -m html -n build_history -x "Overall job performance"

- label: ":envelope: Slack report: build_history new"
command:
- |
# this writes the build history to a file
BUILD_HISTORY_LINK=$(curl -s -H "Authorization: Bearer $$BUILDKITE_READ_ARTIFACTS_API_TOKEN" -X GET "https://api.buildkite.com/v2/organizations/clima/pipelines/climacoupler-longruns/builds/$$BUILDKITE_BUILD_NUMBER/artifacts" | jq -r '.[0].download_url')
slack-message -c "#coupler-report" -x "Interactive overall job performance history $$BUILD_HISTORY_LINK"
ARTIFACT_ID=$(curl -s -H "Authorization: Bearer $BUILDKITE_READ_ARTIFACTS_API_TOKEN" -X GET "https://api.buildkite.com/v2/organizations/clima/pipelines/climacoupler-longruns/builds/$$BUILDKITE_BUILD_NUMBER/artifacts" | jq -r '.[] | select(.filename == "build_history.html") | .id')
JOB_ID=$(curl -s -H "Authorization: Bearer $BUILDKITE_READ_ARTIFACTS_API_TOKEN" -X GET "https://api.buildkite.com/v2/organizations/clima/pipelines/climacoupler-longruns/builds/$$BUILDKITE_BUILD_NUMBER/artifacts" | jq -r '.[] | select(.filename == "build_history.html") | .job_id')
URL=$(curl -H "Authorization: Bearer $BUILDKITE_READ_ARTIFACTS_API_TOKEN" -X GET "https://api.buildkite.com/v2/organizations/clima/pipelines/climaatmos-ci/builds/$$BUILDKITE_BUILD_NUMBER/jobs/$$JOB_ID/artifacts/$$ARTIFACT_ID/download"| jq)
slack-message -c "#coupler-report" -x "Interactive overall job performance history $$URL"
# - label: ":envelope: Slack report: Slabplanet"
# command:
# - slack-upload -c "#coupler-report" -f experiments/AMIP/output/slabplanet/slabplanet_coupler_sf_evolve_ocn_artifacts/total_energy_bucket.png -m png -n slab_coarse -x "Slabplanet energy conservation"
Expand All @@ -336,3 +333,5 @@ steps:
# command:
# - slack-upload -c "#coupler-report" -f experiments/AMIP/output/amip/amip_target_topo_diagedmf_artifacts/amip_ncep.png -m png -n amip_fine -x "Target AMIP v NCEP Last Month Mean"
# - slack-upload -c "#coupler-report" -f experiments/AMIP/output/amip/amip_target_topo_diagedmf_artifacts/bias_total.png -m png -n amip_fine -x "AMIP Target Longrun All Time Bias"


0 comments on commit 6cd1954

Please sign in to comment.