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
|
- job:
name: tcwg-make-and-test-release
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: 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, git branch and revision, or a URL of a tarball e.g., "gcc-linaro-5.3-2016.02.tar.xz"'
- string:
name: binutils_src
default: ''
description: 'A optional revision of binutils to use for this release, e.g., "binutils-gdb.git~linaro_binutils-2_25-branch"'
- string:
name: glibc_src
default: ''
description: 'An optional revision of Glibc to use for this release, e.g., "glibc.git~linaro/2.21/master"'
- string:
name: date
default: ''
description: 'An optional release string to use, e.g., "2016.05", "2016.05-rc3", "2016.05-1", "2016.05-1-rc2". The default is to extract the release string from the gcc_src field'
- string:
name: manifest_src
default: ''
description: 'Import a manifest file to reproduce a release'
- string:
name: toolchain_config
default: 'default'
description: 'Toolchain version config, e.g., "default", "gcc5", or "gcc6"'
- 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'
- string:
name: abe_branch
default: refs/heads/master
description: 'ABE revision to test'
- string:
name: scripts_branch
default: master
description: 'Scripts branch to use'
- choice:
name: debug
choices:
- none
- abe
- yaml
description: "Level of debug information: none - No debugging information, abe - ABE debugging information, yaml - tcwg-make-release.yaml debug information (and exit)."
- string:
name: fileserver
default: dev-01.tcwglab
description: 'Remote file server for logs and binaries'
- bool:
name: testrelease
default: 'true'
description: 'Run test-release if make-release is successful'
disabled: false
node: tcwg-x86_64-dev-01
retry-count: 3
concurrent: true
display-name: 'TCWG Make and Test Release'
wrappers:
- timeout:
timeout: 600
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
builders:
- shell: |
#!/bin/bash
tcwg_release=${date}
# If there is no date set, extract release information from the gcc_src
if test "${date:+set}" != "set"; then
tcwg_release="`basename $gcc_src | cut -d '-' -f4-`"
tcwg_release=${tcwg_release%".tar.xz"}
fi
# Extract the gcc_version information from gcc_src to determine
# which directory to copy the tarballs into.
gcc_version="`basename $gcc_src | awk -F '-' '{ print $3 }'`"
gcc_major="`echo $gcc_version | awk -F '.' '{ print $1 }'`"
gcc_minor="`echo $gcc_version | awk -F '.' '{ print $2 }'`"
tcwg_version="${gcc_major}.${gcc_minor}"
if test ${gcc_major} -lt 5; then
gcc_point="`echo $gcc_version | awk -F '.' '{ print $2 }'`"
tcwg_version="${gcc_major}.${gcc_minor}.${gcc_point}"
fi
buildid=`printf '%04d' ${BUILD_NUMBER}`
binariesdir=releases/binaries/${tcwg_version}-${tcwg_release}-${buildid}
logsdir=releases/logs/${tcwg_version}-${tcwg_release}-${buildid}
cat << EOF > make_release_parameters
binariesdir=${binariesdir}
logsdir=${logsdir}
EOF
echo "NOTE: Make-release job parameters:"
cat make_release_parameters
cat << EOF > test_release_parameters
tarball_url=http://${fileserver}/~tcwg-buildslave/${binariesdir}
release=${date}
EOF
echo "NOTE: Test-release job parameters:"
cat test_release_parameters
exit 0
- multijob:
name: 'Check Make Release'
condition: COMPLETED
projects:
- name: tcwg-make-release-christophe
current-parameters: true
property-file: make_release_parameters
- multijob:
name: 'Check Test Release'
condition: COMPLETED
projects:
- name: tcwg-test-release-matrix
current-parameters: true
property-file: test_release_parameters
publishers:
- email-ext:
recipients: 'christophe.lyon@linaro.org'
always: true
send-to:
requester
recipients
|