- job: name: tcwg-test-release-matrix project-type: matrix defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel - build-discarder: days-to-keep: 60 num-to-keep: 100 parameters: - string: name: tarball_url default: '' description: 'The GCC binary tarball to test' - string: name: scripts_branch default: refs/remotes/origin/master description: 'Scripts revision to use ' - string: name: release default: description: 'Release name' - string: name: target_list default: 'aarch64-elf aarch64-linux-gnu aarch64_be-elf aarch64_be-linux-gnu armv8l-linux-gnueabihf arm-eabi arm-linux-gnueabi arm-linux-gnueabihf armeb-eabi armeb-linux-gnueabi armeb-linux-gnueabihf' description: 'List of targets to use' - bool: name: debug default: false description: 'Whether to enable bash debugging output.' disabled: false node: tcwg-x86_64-dev-01 retry-count: 3 concurrent: true display-name: 'TCWG Test Release matrix' scm: - git: url: https://git-us.linaro.org/toolchain/jenkins-scripts.git refspec: +refs/changes/*:refs/remotes/changes/* branches: - ${scripts_branch} skip-tag: true shallow-clone: true wipe-workspace: true axes: - axis: type: slave name: label values: - docker-trusty-amd64-tcwg-build - docker-trusty-i386-tcwg-build - axis: type: dynamic name: target values: - target_list execution-strategy: sequential: false wrappers: - timeout: timeout: 300 - timestamps - ssh-agent-credentials: users: - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' # tcwg-buildslave - build-name: name: '#${BUILD_NUMBER}-${ENV,var="release"}-${ENV,var="target"}' builders: - shell: | #!/bin/bash set -e if test x${debug} = x"true"; then shell="/bin/bash -x" set -x else shell="/bin/bash" fi if test x"${tarball_url}" = x; then echo "ERROR: no binary tarball specified!" exit 1 fi fullver=$(basename ${tarball_url}) gccver=${fullver%%-*} case ${label} in *i386*) host=i686 ;; *amd64*) host=x86_64 ;; *) echo "Unsupported slave type: ${label}" exit 1 ;; esac # FIXME: temporary hack: hardcode the ".1" in GCC version number ${shell} ${WORKSPACE}/TestRelease.job --tarball ${tarball_url}/${target}/gcc-linaro-${gccver}.1-${release}-${host}_${target}.tar.xz # Test the mingw toolchain on 32 bit host only case ${label} in *i386*) host=i686-mingw32 ${shell} ${WORKSPACE}/TestRelease.job --tarball ${tarball_url}/${target}/gcc-linaro-${gccver}.1-${release}-${host}_${target}.tar.xz ;; esac exit $? publishers: - email-ext: recipients: 'christophe.lyon@linaro.org' always: true