aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2018-10-12 15:07:00 +0100
committerStuart Monteith <stuart.monteith@linaro.org>2018-10-12 15:07:00 +0100
commit68c2544913393673d2c5e47e4b0031ddd6c3936c (patch)
tree6e3653a49b29a632064fe26fee0f595f9d03a7cb
parent25531b7f94f65e3d82961fcff0d45cb41bb7f7ba (diff)
jdk: Improve jdkX-ci-build email
Give enough context so that build failures will be quickly recognised. Change-Id: I9a6ebe63e30bb8994a6dc1d0f6d20b57ca35cf2b
-rw-r--r--jdkX-ci-build.yaml23
1 files changed, 16 insertions, 7 deletions
diff --git a/jdkX-ci-build.yaml b/jdkX-ci-build.yaml
index 6a09a624d8..862cbda15a 100644
--- a/jdkX-ci-build.yaml
+++ b/jdkX-ci-build.yaml
@@ -68,16 +68,19 @@
which java
java -version
+ rm -rf out
+ mkdir out
+
pushd build
sh ../jdkX/configure --with-debug-level=fastdebug \
${ccache_build_opts} \
--with-jtreg=${WORKSPACE}/jtreg
- make images build-test-hotspot-jtreg-native build-test-jdk-jtreg-native
+ make images build-test-hotspot-jtreg-native build-test-jdk-jtreg-native |& tee ../out/build.out
popd
+ # Take bottom 100 lines of build output, shift it right by two characters
+ tail -n 100 out/build.out | sed 's,^, ,' > build-tail.out
# Archive the result
- rm -rf out
- mkdir out
artifact_name=jdkX-ci-build
tar -C build/images/jdk --exclude=\*.diz --transform="s!^./!$artifact_name/!" -acf out/${artifact_name}.tar.gz .
@@ -85,12 +88,18 @@
tar -C build/ --exclude=hotspot/jtreg/native/support/\* --transform="s!^support/!${artifact_name}-support/support/!" -acf out/${artifact_name}-support.tar.gz support/test
publishers:
- archive:
- artifacts: 'out/*.tar.gz'
+ artifacts: 'out/*.tar.gz, out/build.out'
- email-ext:
reply-to: aarch64-port-dev@mail.openjdk.java.net
- subject: jdk/jdk Build ${BUILD_NUMBER}
- attach-build-log: true
- body: 'Build ${BUILD_URL}'
+ subject: Linaro OpenJDK AArch64 jdk/jdk build ${BUILD_NUMBER} ${BUILD_STATUS}
+ attach-build-log: false
+ body: |
+ OpenJDK AArch64 jdk/jdk build status is ${BUILD_STATUS}
+ Build details - ${BUILD_URL}
+
+ Build output -
+ ${FILE,path="build-tail.out"}
+
fixed: true
failure: true
recipients: 'stuart.monteith@linaro.org'