blob: 7a5cb22e1ef2324f83dee91d87857c49dbf13c64 (
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
- scm:
name: tf-a-ci-scripts
scm:
- git:
url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
branches:
- refs/heads/master
basedir: tf-a-ci-scripts
skip-tag: true
shallow-clone: true
wipe-workspace: false
- scm:
name: trusted-firmware-a
scm:
- git:
url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
refspec: ${TF_GERRIT_REFSPEC}
name: origin
branches:
- ${TF_GERRIT_BRANCH}
basedir: trusted-firmware-a
skip-tag: true
shallow-clone: false
wipe-workspace: false
- scm:
name: tf-a-tests
scm:
- git:
url: https://git.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
refspec: ${TFTF_GERRIT_REFSPEC}
name: origin
branches:
- ${TFTF_GERRIT_BRANCH}
basedir: tf-a-tests
skip-tag: true
shallow-clone: false
wipe-workspace: false
- job:
name: tf-a-builder
node: docker-amd64-tf-a-bionic
project-type: freestyle
concurrent: true
disabled: false
defaults: global
Description: |
Trusted Firmware A (TF-A) builder
properties:
- build-discarder:
days-to-keep: 180
num-to-keep: 3000
- authorization:
!include: authorization.yaml.inc
parameters:
- string:
name: import_cc
- string:
name: TEST_DESC
- string:
name: TF_GERRIT_PROJECT
default: 'TF-A/trusted-firmware-a'
- string:
name: TF_GERRIT_BRANCH
default: 'refs/heads/master'
- string:
name: TF_GERRIT_REFSPEC
default: '+refs/heads/master:refs/remotes/origin/master'
- string:
name: TFTF_GERRIT_PROJECT
default: 'TF-A/tf-a-tests'
- string:
name: TFTF_GERRIT_BRANCH
default: 'refs/heads/master'
- string:
name: TFTF_GERRIT_REFSPEC
default: '+refs/heads/master:refs/remotes/origin/master'
- string:
name: DOCKER_REGISTRY
default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
- string:
name: ARMLMD_LICENSE_FILE
default: '27000@ci.trustedfirmware.org'
- string:
name: JUNO_ROOTFS_URL
default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
- string:
name: MBEDTLS_URL
default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
- string:
name: GERRIT_PATCHSET_NUMBER
default: ''
- string:
name: GERRIT_CHANGE_NUMBER
default: ''
- string:
name: GERRIT_HOST
default: 'review.trustedfirmware.org'
- string:
name: QA_SERVER_TEAM
default: 'tf'
- string:
name: QA_SERVER_PROJECT
default: 'tf-a'
- string:
name: QA_SERVER
default: 'https://qa-reports.linaro.org'
- bool:
name: ENABLE_STATIC_CHECK
default: false
scm:
- tf-a-ci-scripts
- trusted-firmware-a
- tf-a-tests
wrappers:
- timestamps
- timeout:
timeout: 120
fail: true
- credentials-binding:
- text:
credential-id: QA_REPORTS_TOKEN
variable: QA_REPORTS_TOKEN
- credentials-binding:
- text:
credential-id: LAVA_USER_TF
variable: LAVA_USER
- credentials-binding:
- text:
credential-id: LAVA_TOKEN_TF
variable: LAVA_TOKEN
builders:
- shell:
!include-raw: tf-a-builder/builders.sh
- conditional-step:
condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: artefacts/debug/job.yaml
condition-basedir: workspace
steps:
- shell: |
#!/bin/bash
set -e
DEVICE_TYPE=fvp
CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
cat << EOF > ${WORKSPACE}/lava.param
DEVICE_TYPE=${DEVICE_TYPE}
LAVA_SERVER=tf.validation.linaro.org
EOF
publishers:
- archive:
artifacts: 'artefacts/**'
latest-only: false
allow-empty: true
- conditional-publisher:
- condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: artefacts/debug/job.yaml
condition-basedir: workspace
action:
- postbuildscript:
builders:
- role: SLAVE
build-on:
- SUCCESS
build-steps:
- inject:
properties-file: ${WORKSPACE}/lava.param
- shell:
!include-raw: tf-a-builder/squad.sh
- conditional-publisher:
- condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: lava.log
condition-basedir: workspace
action:
- archive:
artifacts: lava.log
latest-only: false
allow-empty: true
- groovy-postbuild:
script:
!include-raw:
- tf-a-builder/postbuild.groovy
|