diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2016-06-30 13:32:23 -0600 |
---|---|---|
committer | Ryan Arnold <ryan.arnold@linaro.org> | 2016-07-01 21:12:54 +0000 |
commit | 0b7bd3223ff5f50f0b84e9ffb490ab9e4863923e (patch) | |
tree | 757695f64a1b6b779af9de9be6b8cdafa5f5658c /MakeRelease.job | |
parent | 71239d869047b52ac8b12aee0778a7d9bf27b1f9 (diff) |
Dump stdout into a log file, and copy it to the fileserver.
This will reduce stdout traffic to the Jenkins console which should improve
release build time performance.
Change-Id: I861f21b8064350ff9b17257c39b3ce0612c185b9
Diffstat (limited to 'MakeRelease.job')
-rwxr-xr-x | MakeRelease.job | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/MakeRelease.job b/MakeRelease.job index 087274f7..b0f3e83a 100755 --- a/MakeRelease.job +++ b/MakeRelease.job @@ -39,6 +39,7 @@ fileserver="148.251.136.42" extra= toolchain_config="" user_workspace="${WORKSPACE:-/home/${USER:-buildslave}/workspace}" +logfile=${user_workspace}/MakeRelease-${BUILD_NUMBER}.log OPTS="`getopt -o r:t:f:d:bw:m:l:g:u:h -l target:,ref:,date:,fileserver:,tarbin:,workspace:,toolchainconfig:,manifest:,glibc:,gcc:,binutils:,help`" while test $# -gt 0; do @@ -144,16 +145,18 @@ srcs="${gcc} ${binutils} ${glibc} ${manifest}" # Build a binary release tarball, then run the tests on the installed binaries if test x"${tarbin}" = x"yes"; then + # Remove if present (for some unknown reason) + rm -f ${logfile} # Canadian cross builds require a Linux hosted cross compiler first if test x"${canadian}" = x"true"; then - $CONFIG_SHELL ${abe_dir}/abe.sh ${update} --release ${release} ${check} ${srcs} ${platform} --build all ${libc} ${extra} + $CONFIG_SHELL ${abe_dir}/abe.sh ${update} --release ${release} ${check} ${srcs} ${platform} --build all ${libc} ${extra} >> ${logfile} host="--host i686-w64-mingw32" rm -fr ${local_builds}/${host}/${target}/ # update="--disable update" else host="" fi - $CONFIG_SHELL ${abe_dir}/abe.sh ${update} --release ${release} --tarbin ${check} ${srcs} ${platform} ${host} --build all ${libc} ${extra} + $CONFIG_SHELL ${abe_dir}/abe.sh ${update} --release ${release} --tarbin ${check} ${srcs} ${platform} ${host} --build all ${libc} ${extra} >> ${logfile} fi # force a failure if abe has build problems. @@ -161,6 +164,14 @@ if test $? -gt 0; then exit 1 fi +# Copy the build log to the fileserver +if test -e ${logfile}; then + echo "Compressing log file..." + xz ${logfile} + echo "Copying compressed log file ${logfile}.xz to ${fileserver}:${bases}..." + scp ${logfile}.xz ${fileserver}:${bases}/ +fi + # Copy the source build test results and tarballs to the fileserver bases="/work/abe/baselines/${release}/${target}" snaps="/home/abe/var/snapshots/" |