aboutsummaryrefslogtreecommitdiff
path: root/tcwg-trigger-gcc-linaro-6.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-03-16 17:14:37 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-03-16 17:15:00 +0000
commitedb28ee0887466e12752847df1b0d449a162c128 (patch)
tree6400bd99290102d9944741e2cd30974690104c7c /tcwg-trigger-gcc-linaro-6.yaml
parent1827e45737a14f74e3e994dcaa0093e3a7b0f94e (diff)
tcwg-trigger-gcc-linaro-6: New job
Monitors changes in repos involved in gcc-linaro-6 toolchains: binutils-2.27 glibc-2.23 Change-Id: Iafa67619b6434a5dacc8c504b63d6508d8cb7a7b
Diffstat (limited to 'tcwg-trigger-gcc-linaro-6.yaml')
-rw-r--r--tcwg-trigger-gcc-linaro-6.yaml162
1 files changed, 162 insertions, 0 deletions
diff --git a/tcwg-trigger-gcc-linaro-6.yaml b/tcwg-trigger-gcc-linaro-6.yaml
new file mode 100644
index 0000000000..eb60707d20
--- /dev/null
+++ b/tcwg-trigger-gcc-linaro-6.yaml
@@ -0,0 +1,162 @@
+- scm:
+ name: gcc
+ scm:
+ - git:
+ url: https://git-us.linaro.org/toolchain/gcc.git
+ refspec: +refs/heads/*:refs/remotes/origin/*
+ branches:
+ - origin/linaro/gcc-6-branch
+ basedir: gcc
+ scm-name: GCC
+ skip-tag: true
+ wipe-workspace: false
+ reference-repo: /home/tcwg-buildslave/snapshots-ref/gcc.git
+ clean:
+ before: true
+- scm:
+ name: glibc
+ scm:
+ - git:
+ url: https://git-us.linaro.org/toolchain/glibc.git
+ refspec: +refs/heads/*:refs/remotes/origin/*
+ branches:
+ - origin/linaro/2.23/master
+ basedir: glibc
+ scm-name: Glibc
+ skip-tag: true
+ wipe-workspace: false
+ reference-repo: /home/tcwg-buildslave/snapshots-ref/glibc.git
+ clean:
+ before: true
+- scm:
+ name: binutils
+ scm:
+ - git:
+ url: https://git-us.linaro.org/toolchain/binutils-gdb.git
+ refspec: +refs/heads/*:refs/remotes/origin/*
+ branches:
+ - origin/linaro_binutils-2_27-branch
+ basedir: binutils
+ scm-name: Binutils
+ skip-tag: true
+ wipe-workspace: false
+ reference-repo: /home/tcwg-buildslave/snapshots-ref/binutils-gdb.git
+ clean:
+ before: true
+- job:
+ name: tcwg-trigger-gcc-linaro-6
+ project-type: multijob
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-build
+ - job-cancel
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ parameters:
+ - string:
+ name: override
+ default: ''
+ description: 'Versions of components to build; e.g. binutils=binutils-gdb.git/linaro_binutils-2_27-branch gcc=gcc.git~linaro/gcc-6-branch glibc=glibc.git~release/2.23/master'
+ - string:
+ name: log_server
+ default: dev-01.tcwglab:logs
+ description: 'Log_Server'
+ - string:
+ name: abe_branch
+ default: refs/remotes/origin/master
+ description: 'ABE revision to test'
+ - string:
+ name: ref_build
+ default: 'previous'
+ description: 'Reference build for comparison, e.g., "lastSuccess" or "previous" or job number or empty string to skip comparison'
+ disabled: false
+ node: tcwg-x86_64-dev-01
+ concurrent: true
+ display-name: 'TCWG Trigger GCC Linaro 6'
+ scm:
+ - gcc
+ - glibc
+ - binutils
+ triggers:
+ - pollscm:
+ cron: 'H * * * *'
+ wrappers:
+ - timeout:
+ timeout: 600
+ - timestamps
+ - ssh-agent-credentials:
+ # tcwg-buildslave user id
+ users:
+ - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -ex
+
+ shopt -s extglob
+
+ for i in gcc glibc binutils; do
+ pushd $i
+ comp_rev=$(git rev-parse HEAD)
+ comp_list="$i=$i.git@$comp_rev $comp_list"
+ popd
+ done
+
+ cat << EOF > buildfarm_parameters
+ override=$comp_list --extraconfigdir ../config/gcc6 $override
+ log_name=${JOB_NAME}-${BUILD_NUMBER}/\$(uname -m).\$target
+ log_server=$log_server
+ abe_branch=$abe_branch
+ runtests=yes
+ try_bootstrap=true
+ rebuild=false
+ dont_fail=false
+ host_x86_64_excludecheck=gdb
+ host_aarchXX_excludecheck=
+ EOF
+
+ if [ x"$ref_build" != x ] ; then
+ case "$ref_build" in
+ lastSuccess) ref_build_num=$(wget -q --no-check-certificate -O - "${JOB_URL}lastSuccessfulBuild/buildNumber") ;;
+ previous) ref_build_num=$(wget -q --no-check-certificate -O - "${JOB_URL}lastCompletedBuild/buildNumber") ;;
+ [1-9]*([0-9])) ref_build_num="$ref_build" ;;
+ *) echo "ERROR: Cannot handle ref_build: $ref_build"; exit 1 ;;
+ esac
+
+ # Scrambled indentation because of here-doc
+ cat << EOF > compare_results_parameters
+ ref_logs=${JOB_NAME}-$ref_build_num
+ new_logs=${JOB_NAME}-$BUILD_NUMBER
+ log_server=$log_server
+ abe_branch=$abe_branch
+ EOF
+ fi
+ - multijob:
+ name: 'Builds'
+ projects:
+ - name: tcwg-buildfarm
+ condition: COMPLETED
+ predefined-parameters: |
+ targets='cross_main cross_aux native_x86'
+ property-file: buildfarm_parameters
+ - conditional-step:
+ condition-kind: file-exists
+ condition-filename: compare_results_parameters
+ steps:
+ - trigger-builds:
+ - project: tcwg-compare-results
+ property-file: compare_results_parameters
+ block: true
+ publishers:
+ - workspace-cleanup:
+ include:
+ - "*_parameters"
+ - email:
+ recipients: 'christophe.lyon@linaro.org'