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 4
4
steps :
5
5
- label : " Run the release"
6
6
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 "
9
9
10
10
notify :
11
11
- slack :
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ agents:
4
4
steps :
5
5
- label : " Run the snapshot"
6
6
key : " release"
7
- commands : .ci/snapshot.sh | tee snapshot.out
7
+ commands : .ci/snapshot.sh
8
8
artifact_paths :
9
- - " snapshot.out "
9
+ - " snapshot.txt "
10
10
- " **/target/*"
11
11
12
12
notify :
13
13
- slack :
14
+ if : build.state == "failed"
14
15
channels :
15
16
- " #apm-agent-java"
Original file line number Diff line number Diff line change 3
3
# # branch_specifier
4
4
# # dry_run
5
5
# #
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
10
10
11
11
# Make sure we delete this folder before leaving even in case of failure
12
12
clean_up () {
@@ -27,5 +27,5 @@ if [[ "$dry_run" == "true" ]] ; then
27
27
echo ' ./mvnw release:prepare release:perform --settings .ci/settings.xml --batch-mode'
28
28
else
29
29
# 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
31
31
fi
Original file line number Diff line number Diff line change 1
1
<settings xmlns =" http://maven.apache.org/SETTINGS/1.1.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
2
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 >
4
3
<pluginGroups >
5
4
<pluginGroup >org.apache.maven.plugins</pluginGroup >
6
5
<pluginGroup >org.codehaus.mojo</pluginGroup >
Original file line number Diff line number Diff line change 6
6
# # are prepared automatically by buildkite.
7
7
# #
8
8
9
- set -e
9
+ set -eo pipefail
10
10
11
11
# Make sure we delete this folder before leaving even in case of failure
12
12
clean_up () {
@@ -23,5 +23,5 @@ echo "--- Deploy the snapshot"
23
23
if [[ " $dry_run " == " true" ]] ; then
24
24
echo ' ./mvnw -s .ci/settings.xml -Pgpg clean deploy --batch-mode'
25
25
else
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
27
27
fi
You can’t perform that action at this time.
0 commit comments