aboutsummaryrefslogtreecommitdiff
path: root/tcwg-buildfarm.yaml
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2018-02-27 16:25:28 +0100
committerYvan Roux <yvan.roux@linaro.org>2018-02-28 09:17:09 +0000
commite63ee9bc0db8da745fc4c8505c63b945eef01414 (patch)
tree769822af8fc75d921097e82f5f57f0e8049be501 /tcwg-buildfarm.yaml
parentd89e4583d3a73b842ca1135806fe8147e84e3e3e (diff)
tcwg-buildfarm: Add binary tarballs option.
Binary toolchain, sysroot and runtime tarballs are available as artifacts (This is a prereq for patch benchmarking job). Change-Id: Ibba9c635b9daf2f6670d6e7a355994980ecf465b
Diffstat (limited to 'tcwg-buildfarm.yaml')
-rw-r--r--tcwg-buildfarm.yaml22
1 files changed, 21 insertions, 1 deletions
diff --git a/tcwg-buildfarm.yaml b/tcwg-buildfarm.yaml
index 2cbdc0d6..8abd826f 100644
--- a/tcwg-buildfarm.yaml
+++ b/tcwg-buildfarm.yaml
@@ -82,6 +82,10 @@
name: displaytag
default: 'manual'
description: 'Tag to display in the Jenkins console, so that the build name is more helpful'
+ - bool:
+ name: binaries
+ default: false
+ description: 'Create binary tarballs'
disabled: false
node: tcwg-coordinator
child-workspace: $target
@@ -204,6 +208,12 @@
norebuild="--norebuild"
fi
+ if $binaries; then
+ tarbin=""
+ else
+ tarbin="--tarbin"
+ fi
+
case $label in
tcwg-x86_*-build) excludecheck="$host_x86_64_excludecheck" ;;
*) excludecheck="$host_aarchXX_excludecheck" ;;
@@ -237,7 +247,7 @@
result="0"
- ${build_CONTAINER_RSH} "cd ${WORKSPACE} && bash -x ${WORKSPACE}/jenkins-scripts/jenkins.sh --workspace ${WORKSPACE} --abedir ${WORKSPACE} --override \"$override\" $target_opt --languages ${languages} $bootstrap $runtests_opt $excludecheck_opt ${extraconfig_opt} --logserver $log_server $logname_opt $norebuild" || result=$?
+ ${build_CONTAINER_RSH} "cd ${WORKSPACE} && bash -x ${WORKSPACE}/jenkins-scripts/jenkins.sh --workspace ${WORKSPACE} --abedir ${WORKSPACE} --override \"$override\" $target_opt --languages ${languages} $bootstrap $runtests_opt $excludecheck_opt ${extraconfig_opt} --logserver $log_server $logname_opt $norebuild $tarbin"|| result=$?
# If the build failed, stop the containers, which will
# leave them as-is for ~10 days.
@@ -261,6 +271,16 @@
scp "$log_server/$dir/*manifest.txt" artifacts/
fi
+ # Provide requested binaries as artifacts
+ if $binaries; then
+ cp $(grep "^toolchain=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ cp $(grep "^toolchain_asc=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ cp $(grep "^runtime=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ cp $(grep "^runtime_asc=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ cp $(grep "^sysroot=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ cp $(grep "^sysroot_asc=" ${WORKSPACE}/build-artifacts.txt | cut -d = -f 2-) artifacts/
+ fi
+
# Save logs and their directory structure
rsync -a --exclude="/logs/" --include="*/" --include="*.log" --include="*.err" --include="*.out" --include="*.txt" --exclude="*" --prune-empty-dirs ./ ./logs/
if ! tar -I pxz -cf ./artifacts/logs.tar.xz ./logs/ >/dev/null 2>&1; then