Skip to content

Commit

Permalink
DRA: Disable summary reports for dry runs (#39240)
Browse files Browse the repository at this point in the history
(cherry picked from commit cfffc1c)
  • Loading branch information
pazone authored and mergify[bot] committed Apr 30, 2024
1 parent 1ad2d38 commit d03f7d3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .buildkite/scripts/dra.sh
Expand Up @@ -80,11 +80,13 @@ docker run --rm \
--artifact-set "main" \
${DRY_RUN} | tee rm-output.txt

# extract the summary URL from a release manager output line like:
# Report summary-18.22.0.html can be found at https://artifacts-staging.elastic.co/beats/18.22.0-ABCDEFGH/summary-18.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
if [[ "$DRY_RUN" != "--dry-run" ]]; then
# extract the summary URL from a release manager output line like:
# Report summary-18.22.0.html can be found at https://artifacts-staging.elastic.co/beats/18.22.0-ABCDEFGH/summary-18.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
# and make it easily clickable as a Builkite annotation
printf "**Summary link:** [${SUMMARY_URL}](${SUMMARY_URL})\n" | buildkite-agent annotate --style=success
fi

0 comments on commit d03f7d3

Please sign in to comment.