# http://docs.openstack.org/infra/jenkins-job-builder/definition.html - job: name: tcwg-make-release-christophe project-type: matrix defaults: global properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel - build-discarder: days-to-keep: 30 num-to-keep: 10 parameters: - string: name: gcc_src default: 'gcc-linaro-5.3-2016.02.tar.xz' description: 'The source of GCC. Specify as it would be passed to abe.sh, either a source tarballs, or git branch and revision.' - bool: name: runtests default: false description: 'Whether to run tests on the install binary toolchains.' - string: name: binutils_src default: 'binutils-gdb.git~linaro_binutils-2_25-branch' description: 'The revision of binutils to use for this release.' - string: name: glibc_src default: 'glibc.git~release/2.21/master' description: 'The revision of Glibc to use for this release.' - string: name: date default: '2016.03' description: 'A release string different than the the source files.' - string: name: manifest default: '' description: 'Import a manifest file to reproduce a release' - string: name: gitref default: '/linaro/shared/snapshots' description: 'A GIT reference directory for faster cloning.' - string: name: abe_branch default: refs/heads/master description: 'ABE revision to test' - bool: name: debug default: false description: 'Whether to enable bash debugging output.' - string: name: fileserver default: ex40-01.tcwglab.linaro.org description: 'Remote file server for logs and binaries' # - bool: # name: rpm # default: false # description: 'Whether to build an RPM package.' # - bool: # name: deb # default: false # description: 'Whether to build a DEB package.' disabled: false node: tcwg-x86_64-ex40 retry-count: 3 concurrent: true display-name: 'TCWG DEAD ZZZ Make Release Christophe' scm: - git: url: https://git-us.linaro.org/toolchain/abe.git refspec: +refs/changes/*:refs/remotes/changes/* branches: - ${abe_branch} skip-tag: true shallow-clone: true wipe-workspace: true basedir: abe axes: - axis: type: slave name: label values: - docker-trusty-amd64-tcwg - docker-trusty-i386-tcwg - axis: type: user-defined name: target values: - 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 - axis: type: user-defined name: hosttype values: - linux - mingw execution-strategy: combination-filter: | label=="docker-trusty-amd64-tcwg" || (label=="docker-trusty-i386-tcwg" && hosttype=="linux" && (target=="arm-eabi" || target=="arm-linux-gnueabihf")) sequential: false wrappers: - timestamps - matrix-tie-parent: node: master - timeout: timeout: 300 - ssh-agent-credentials: users: - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' # tcwg-buildslave - build-name: name: '#${BUILD_NUMBER}-${target}' builders: - shell: | #!/bin/bash if test x"${debug}" = x"true"; then shellopt="-x" set -x fi if test x"${hosttype}" = x"mingw"; then export canadian="true" else export canadian="false" fi bash ${shellopt} ${WORKSPACE}/abe/scripts/MakeRelease.job --target ${target} --tarbin --fileserver ${fileserver} if test $? -gt 0; then exit 1 fi tarball="`find ${WORKSPACE} -name gcc-linaro\*${date}\*${target}\*.tar.xz`" if test x"${tarball}" = x""; then echo "ERROR: no binary tarball found!" exit 1 fi tarball="`basename ${tarball}`" tarball_url="http://${fileserver}/binaries/${date}/${target}/${tarball}" cat << EOF > tcwg.params tarball=${tarball_url} EOF - inject: properties-file: tcwg.params - conditional-step: condition-kind: current-status steps: - trigger-builds: - project: 'tcwg-test-release' predefined-parameters: tarball_url=${tarball} boolean-parmeters: debug=${debug} current-parameters: true block: false