Annotate successful DRA builds with summary URL (#15820) (#15825)

This commit makes the generated DRA URL easily accessible via
a Buildkite annotation.

Closes https://github.com/elastic/ingest-dev/issues/2608

(cherry picked from commit c5cb1fe2ed)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
This commit is contained in:
github-actions[bot] 2024-01-22 17:04:33 +02:00 committed by GitHub
parent 94d3839f4a
commit 1577537ad3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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