- job: name: tcwg-buildfarm-master project-type: matrix defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel parameters: - string: name: gcc_branch default: 'latest' description: 'GCC revision to build' - string: name: languages default: 'default' description: 'Languages to build, e.g., "c,c++" or "all" or "default"' - bool: name: try_bootstrap default: 'true' description: 'Attempt to bootstrap GCC for compatible host and target combinations' - string: name: excludecheck default: 'gdb' description: 'Do not run "make check" on this component' - bool: name: rebuild default: true description: 'Rebuild the toolchain even if results are already on logserver' - string: name: logname default: '' description: 'Logname directory on logserver; leave empty for default' - string: name: abe_branch default: refs/heads/master description: 'ABE revision to test' disabled: false node: tcwg-x86_64-01 concurrent: true display-name: 'TCWG BuildFarm master' scm: - git: url: https://git.linaro.org/toolchain/abe.git refspec: +refs/changes/*:refs/remotes/gerrit/changes/* branches: - ${abe_branch} skip-tag: true shallow-clone: true wipe-workspace: true axes: - axis: type: slave name: label values: - tcwg-x86_64 - axis: type: user-defined name: target values: - aarch64-linux-gnu - aarch64-none-elf - aarch64_be-none-elf - arm-linux-gnueabi - arm-linux-gnueabihf - armeb-linux-gnueabihf - native - schroot-i386-native execution-strategy: sequential: false wrappers: - timeout: timeout: 300 - timestamps - ssh-agent-credentials: # tcwg-buildslave user id user: 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' - build-name: name: '#${BUILD_NUMBER}-${ENV,var="gcc_branch"}' - matrix-tie-parent: node: tcwg-x86_64-01 builders: - shell: | #!/bin/bash set -e set -x case ${target} in schroot-*) schroot_arch=$(echo ${target} | sed -e "s/^schroot-\([^-]*\)-\(.*\)/\1/") target=$(echo ${target} | sed -e "s/^schroot-\([^-]*\)-\(.*\)/\2/") ;; *) case $(uname -m) in x86_64) schroot_arch="amd64" ;; aarch64) schroot_arch="arm64" ;; *) echo "Unexpected architecture $(uname -m)"; exit 1 ;; esac ;; esac BUILD_SHELL="schroot -c tcwg-build-${schroot_arch}-trusty --preserve-environment -- bash" if $try_bootstrap; then bootstrap="--bootstrap" else bootstrap="" fi if [ x"$logname" != x"" ]; then logname_opt="--logname $logname" fi if $rebuild; then norebuild="" else norebuild="--norebuild" fi ${BUILD_SHELL} -x ./jenkins.sh --target ${target} --gcc-branch ${gcc_branch} --languages ${languages} $bootstrap --runtests --excludecheck ${excludecheck} --fileserver ex40-01.tcwglab.linaro.org/snapshots-ref --logserver ex40-01.tcwglab.linaro.org:logs-master $logname_opt $norebuild