blob: e619c1d811e80702ef0a3a6fe2e1eaf5088eb641 (
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
|
- job:
name: tcwg-dev-build
project-type: freestyle
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: release_name
default: default
description: 'Name of release series; default is "date +%Y%m%d-%H_%M_%S"'
- string:
name: buildnumber
default: 0
description: 'Build number in release series'
- choice:
name: target
choices:
- aarch64-linux-gnu
- aarch64-elf
- aarch64-linux-gnu_ilp32
- aarch64_be-elf
- aarch64_be-linux-gnu
- arm-eabi
- arm-linux-gnueabi
- arm-linux-gnueabihf
- armeb-eabi
- armeb-linux-gnueabi
- armeb-linux-gnueabihf
- armv8l-linux-gnueabihf
- native
description: 'Target'
- choice:
name: version
choices:
- default
- latest-rel
- master
- gcc8
- gcc7
- gcc6
- gcc5
- gcc4_9
description: 'Toolchain version; should match a supported ABE config'
- choice:
name: distro
choices:
- lts_1
- lts
description: 'Ubuntu distro to use for build environment'
- label:
name: builder
default: tcwg-x86_64-build
description: 'Jenkins label to build on; determines host of the toolchain'
- file:
name: manifest.txt
description: 'Use provided manifest file (which may override above settings)'
- bool:
name: verbose
default: false
description: 'Whether to be verbose'
- string:
name: scripts_branch
default: master
description: 'Scripts revision to use'
- text:
name: extra_options
default:
description: 'Extra options to pass to docker-run'
disabled: false
concurrent: true
display-name: 'TCWG AAA Dev Build'
scm:
- git:
url: https://git.linaro.org/toolchain/jenkins-scripts.git
refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
branches:
- $scripts_branch
skip-tag: true
shallow-clone: true
wipe-workspace: false
clean:
before: true
wrappers:
- timeout:
timeout: 300
- timestamps
- ssh-agent-credentials:
# tcwg-buildslave user id
users:
- 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
- build-name:
name: '#$BUILD_NUMBER-$version-$release_name-$buildnumber/$target'
builders:
- shell: |
#!/bin/bash
set -ex
abe_branch=tested
eval $extra_options
./docker-run.sh --distro "$distro" -- ./tcwg-dev-build.sh \
--abe_branch "$abe_branch" \
--release_name "$release_name" \
--buildnumber "$buildnumber" \
--target "$target" \
--version "$version" \
--manifest "$(pwd)/manifest.txt" \
--verbose "$verbose"
publishers:
- archive:
artifacts: 'artifacts/**'
latest-only: false
|