Skip to content

Commit

Permalink
Annotate successful DRA builds with summary URL (#15820)
Browse files Browse the repository at this point in the history
This commit makes the generated DRA URL easily accessible via
a Buildkite annotation.

Closes elastic/ingest-dev#2608
  • Loading branch information
dliappis authored Jan 22, 2024
1 parent 52d9e62 commit c5cb1fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .buildkite/scripts/dra/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,16 @@ docker run --rm \
--workflow "${WORKFLOW_TYPE}" \
--version "${PLAIN_STACK_VERSION}" \
--artifact-set main \
${DRA_DRY_RUN}
${DRA_DRY_RUN} | tee rm-output.txt

# extract the summary URL from a release manager output line like:
# Report summary-8.22.0.html can be found at https://artifacts-staging.elastic.co/logstash/8.22.0-ABCDEFGH/summary-8.22.0.html

SUMMARY_URL=$(grep -E '^Report summary-.* can be found at ' rm-output.txt | grep -oP 'https://\S+' | awk '{print $1}')
rm rm-output.txt

# and make it easily clickable as a Builkite annotation
printf "**Summary link:** [${SUMMARY_URL}](${SUMMARY_URL})\n" | buildkite-agent annotate --style=success

info "Teardown logins"
$(dirname "$0")/docker-env-teardown.sh
Expand Down

0 comments on commit c5cb1fe

Please sign in to comment.