aboutsummaryrefslogtreecommitdiff
path: root/tcwgrob-backport.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tcwgrob-backport.yaml')
-rw-r--r--tcwgrob-backport.yaml96
1 files changed, 96 insertions, 0 deletions
diff --git a/tcwgrob-backport.yaml b/tcwgrob-backport.yaml
new file mode 100644
index 0000000000..c688ff176b
--- /dev/null
+++ b/tcwgrob-backport.yaml
@@ -0,0 +1,96 @@
+- job:
+ name: tcwg-backport-master
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 100
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ linaro:
+ - job-build
+ - job-cancel
+ parameters:
+ - string:
+ name: gcc_patch
+ default: refs/remotes/origin/linaro/gcc-5-branch
+ description: 'Patched GCC revision'
+ - string:
+ name: gcc_orig
+ default: gcc_patch_prev
+ description: 'Original GCC revision'
+ - string:
+ name: log_server
+ default: ex40-01.tcwglab.linaro.org:logs-master
+ description: 'Log_Server'
+ - string:
+ name: abe_branch
+ default: refs/heads/master
+ description: 'ABE revision to use'
+ disabled: false
+ node: tcwg-x86_64-ex40
+ retry-count: 3
+ concurrent: true
+ display-name: 'TCWG Backport master'
+ scm:
+ - git:
+ url: https://git-us.linaro.org/toolchain/gcc.git
+ refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/changes/*
+ branches:
+ - $gcc_patch
+ skip-tag: true
+ wipe-workspace: false
+ wrappers:
+ - timeout:
+ timeout: 3000
+ - timestamps
+ - ssh-agent-credentials:
+ # tcwg-buildslave user id
+ users:
+ - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
+ - build-name:
+ name: '#${BUILD_NUMBER}-${ENV,var="gcc_patch"}'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ set -e
+ set -x
+
+ gcc_patch_rev=$(git rev-parse $gcc_patch)
+ if [ x"$gcc_orig" = x"gcc_patch_prev" ]; then
+ gcc_orig="$gcc_patch_rev^"
+ fi
+ gcc_orig_rev=$(git rev-parse $gcc_orig)
+
+ echo "gcc_branch=gcc.git@$gcc_orig_rev" > gcc_orig_parameters
+ echo "log_name=tcwg-backport-$gcc_orig_rev/\$(uname -m).\$target" >> gcc_orig_parameters
+ echo "rebuild=false" >> gcc_orig_parameters
+ echo "dont_fail=true" >> gcc_orig_parameters
+ echo "log_server=$log_server" >> gcc_orig_parameters
+ echo "abe_branch=$abe_branch" >> gcc_orig_parameters
+
+ echo "gcc_branch=gcc.git@$gcc_patch_rev" > gcc_patch_parameters
+ echo "log_name=tcwg-backport-$gcc_patch_rev/\$(uname -m).\$target" >> gcc_patch_parameters
+ echo "rebuild=false" >> gcc_patch_parameters
+ echo "dont_fail=true" >> gcc_patch_parameters
+ echo "log_server=$log_server" >> gcc_patch_parameters
+ echo "abe_branch=$abe_branch" >> gcc_patch_parameters
+
+ echo "ref_logs=tcwg-backport-$gcc_orig_rev" > compare_results_parameters
+ echo "new_logs=tcwg-backport-$gcc_patch_rev" >> compare_results_parameters
+ echo "log_server=$log_server" >> compare_results_parameters
+ echo "abe_branch=$abe_branch" >> compare_results_parameters
+ - trigger-builds:
+ - project: tcwg-buildfarm-master
+ parameter-factories:
+ - factory: filebuild
+ file-pattern: gcc_*_parameters
+ block: true
+ - trigger-builds:
+ - project: tcwg-compare-results-master
+ property-file: compare_results_parameters
+ block: true