File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 44steps :
55 - label : " Run the release"
66 key : " release"
7- commands : .ci/release.sh | tee release.out
8- artifact_paths : " release.out "
7+ commands : .ci/release.sh
8+ artifact_paths : " release.txt "
99
1010notify :
1111 - slack :
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ agents:
44steps :
55 - label : " Run the snapshot"
66 key : " release"
7- commands : .ci/snapshot.sh | tee snapshot.out
7+ commands : .ci/snapshot.sh
88 artifact_paths :
9- - " snapshot.out "
9+ - " snapshot.txt "
1010 - " **/target/*"
1111
1212notify :
1313 - slack :
14+ if : build.state == "failed"
1415 channels :
1516 - " #apm-agent-java"
Original file line number Diff line number Diff line change 33# # branch_specifier
44# # dry_run
55# #
6- # # It relies on the .buildkite/hooks/pre-command so the Vault is prepared
7- # # automatically by buildkite.
8-
9- set -e
6+ # # It relies on the .buildkite/hooks/pre-command so the Vault and other tooling
7+ # # are prepared automatically by buildkite.
8+ # #
9+ set -eo pipefail
1010
1111# Make sure we delete this folder before leaving even in case of failure
1212clean_up () {
@@ -27,5 +27,5 @@ if [[ "$dry_run" == "true" ]] ; then
2727 echo ' ./mvnw release:prepare release:perform --settings .ci/settings.xml --batch-mode'
2828else
2929 # providing settings in arguments to make sure they are propagated to the forked maven release process
30- ./mvnw release:prepare release:perform --settings .ci/settings.xml -Darguments=" --settings .ci/settings.xml" --batch-mode
30+ ./mvnw release:prepare release:perform --settings .ci/settings.xml -Darguments=" --settings .ci/settings.xml" --batch-mode | tee release.txt
3131fi
Original file line number Diff line number Diff line change 11<settings xmlns =" http://maven.apache.org/SETTINGS/1.1.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
22 xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" >
3- <localRepository >/var/lib/jenkins/.m2/repository</localRepository >
43 <pluginGroups >
54 <pluginGroup >org.apache.maven.plugins</pluginGroup >
65 <pluginGroup >org.codehaus.mojo</pluginGroup >
Original file line number Diff line number Diff line change 66# # are prepared automatically by buildkite.
77# #
88
9- set -e
9+ set -eo pipefail
1010
1111# Make sure we delete this folder before leaving even in case of failure
1212clean_up () {
@@ -23,5 +23,5 @@ echo "--- Deploy the snapshot"
2323if [[ " $dry_run " == " true" ]] ; then
2424 echo ' ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode'
2525else
26- ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode
26+ ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode | tee snapshot.txt
2727fi
You can’t perform that action at this time.
0 commit comments