mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
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:
parent
94d3839f4a
commit
1577537ad3
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue