blob: 5d33c468c27b211e08beb9462590f6801c146f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
# 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 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
|