blob: f9a8d766b41820657b4c7fc317c9b7b76eb73dfa [file] [log] [blame]
Fathi Boudra9e402bf2019-12-05 11:16:41 +02001- scm:
2 name: tf-a-ci-scripts
3 scm:
4 - git:
5 url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
6 refspec: +refs/heads/master:refs/remotes/origin/master
7 name: origin
8 branches:
9 - refs/heads/master
10 basedir: tf-a-ci-scripts
11 skip-tag: true
12 shallow-clone: true
13 wipe-workspace: false
14- scm:
15 name: trusted-firmware-a
16 scm:
17 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050018 url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
19 refspec: ${TF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020020 name: origin
21 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050022 - ${TF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020023 basedir: trusted-firmware-a
24 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050025 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020026 wipe-workspace: false
27- scm:
28 name: tf-a-tests
29 scm:
30 - git:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050031 url: https://git.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
32 refspec: ${TFTF_GERRIT_REFSPEC}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020033 name: origin
34 branches:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050035 - ${TFTF_GERRIT_BRANCH}
Fathi Boudra9e402bf2019-12-05 11:16:41 +020036 basedir: tf-a-tests
37 skip-tag: true
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050038 shallow-clone: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020039 wipe-workspace: false
40- job:
41 name: tf-a-builder
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050042 node: docker-amd64-tf-a-bionic
Fathi Boudra9e402bf2019-12-05 11:16:41 +020043 project-type: freestyle
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050044 concurrent: true
45 disabled: false
Fathi Boudra9e402bf2019-12-05 11:16:41 +020046 defaults: global
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 Description: |
48 Trusted Firmware A (TF-A) builder
Fathi Boudra9e402bf2019-12-05 11:16:41 +020049 properties:
50 - build-discarder:
Leonardo Sandovaleb141602020-07-13 14:21:20 -050051 days-to-keep: 180
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050052 num-to-keep: 3000
Riku Voipiobc87be22020-09-04 15:56:09 +030053 - authorization:
54 anonymous:
Riku Voipio3a69f722020-10-05 11:39:45 +030055 - job-discover
Riku Voipiobc87be22020-09-04 15:56:09 +030056 - job-read
57 - job-extended-read
Riku Voipio3a69f722020-10-05 11:39:45 +030058 - job-workspace
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050059 lsandov1:
60 - job-read
61 - job-extended-read
62 - job-build
63 - job-cancel
64 - run-update
Fathi Boudra9e402bf2019-12-05 11:16:41 +020065 parameters:
66 - string:
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050067 name: import_cc
Leonardo Sandovalafdd5ce2020-07-06 11:35:36 -050068 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 name: TEST_DESC
Fathi Boudra18eca5c2020-01-16 17:50:42 +020070 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050071 name: TF_GERRIT_PROJECT
Fathi Boudra18eca5c2020-01-16 17:50:42 +020072 default: 'TF-A/trusted-firmware-a'
73 - string:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050074 name: TF_GERRIT_BRANCH
Fathi Boudra18eca5c2020-01-16 17:50:42 +020075 default: 'refs/heads/master'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050076 - string:
77 name: TF_GERRIT_REFSPEC
78 default: '+refs/heads/master:refs/remotes/origin/master'
79 - string:
80 name: TFTF_GERRIT_PROJECT
81 default: 'TF-A/tf-a-tests'
82 - string:
83 name: TFTF_GERRIT_BRANCH
84 default: 'refs/heads/master'
85 - string:
86 name: TFTF_GERRIT_REFSPEC
87 default: '+refs/heads/master:refs/remotes/origin/master'
88 - string:
89 name: DOCKER_REGISTRY
90 default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
91 - string:
92 name: ARMLMD_LICENSE_FILE
93 default: '27000@ci.trustedfirmware.org'
94 - string:
95 name: JUNO_ROOTFS_URL
96 default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
97 - string:
98 name: MBEDTLS_URL
Leonardo Sandovale9dfbcd2021-01-07 23:05:40 -060099 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.25.0.tar.gz'
Milosz Wasilewski10438582020-12-03 11:36:21 +0000100 - string:
101 name: GERRIT_PATCHSET_NUMBER
102 default: ''
103 - string:
104 name: GERRIT_CHANGE_NUMBER
105 default: ''
106 - string:
Milosz Wasilewski204a27e2020-12-10 10:29:45 +0000107 name: GERRIT_HOST
108 default: 'review.trustedfirmware.org'
109 - string:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000110 name: QA_SERVER_TEAM
111 default: 'tf'
112 - string:
113 name: QA_SERVER_PROJECT
114 default: 'tf-a'
115 - string:
116 name: QA_SERVER
117 default: 'https://qa-reports.linaro.org'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500118 - bool:
119 name: ENABLE_STATIC_CHECK
120 default: false
121 - choice:
122 name: REPO_UNDER_STATIC_CHECK
123 choices:
124 - trusted-firmware-a
125 - tf-a-tests
126 default: trusted-firmware-a
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200127 scm:
128 - tf-a-ci-scripts
129 - trusted-firmware-a
130 - tf-a-tests
131 wrappers:
132 - timestamps
Milosz Wasilewski10438582020-12-03 11:36:21 +0000133 - credentials-binding:
134 - text:
135 credential-id: QA_REPORTS_TOKEN
136 variable: QA_REPORTS_TOKEN
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200137 builders:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500138 - conditional-step:
139 condition-kind: boolean-expression
140 condition-expression: "${ENABLE_STATIC_CHECK}"
141 steps:
Fathi Boudra9c8a9452020-12-08 22:16:57 +0100142 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500143 #!/bin/bash
144 set -e
145 export IS_CONTINUOUS_INTEGRATION=1
146 cd ${WORKSPACE}/${REPO_UNDER_STATIC_CHECK}
147 ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh
148 mv "static-checks.log" "$WORKSPACE"
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200149 - shell:
150 !include-raw: tf-a-builder/builders.sh
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500151 - conditional-step:
152 condition-kind: file-exists
153 on-evaluation-failure: dont-run
154 condition-filename: artefacts/debug/job.yaml
155 condition-basedir: workspace
156 steps:
157 - shell: |
158 #!/bin/bash
Fathi Boudraf60340c2020-01-17 18:44:15 +0200159
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500160 set -e
Fathi Boudraf60340c2020-01-17 18:44:15 +0200161
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500162 DEVICE_TYPE=fvp
163 CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
164 DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
Fathi Boudraf60340c2020-01-17 18:44:15 +0200165
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500166 cat << EOF > ${WORKSPACE}/post-build-lava.param
167 DEVICE_TYPE=${DEVICE_TYPE}
Milosz Wasilewski10438582020-12-03 11:36:21 +0000168 LAVA_SERVER=tf.validation.linaro.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500169 EOF
Fathi Boudra9e402bf2019-12-05 11:16:41 +0200170 publishers:
171 - archive:
172 artifacts: 'artefacts/**'
173 latest-only: false
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500174 allow-empty: true
175 - conditional-publisher:
176 - condition-kind: file-exists
177 on-evaluation-failure: dont-run
178 condition-filename: artefacts/debug/job.yaml
179 condition-basedir: workspace
180 action:
Milosz Wasilewski10438582020-12-03 11:36:21 +0000181 - postbuildscript:
182 builders:
183 - role: SLAVE
184 build-on:
185 - SUCCESS
186 build-steps:
187 - inject:
188 properties-file: ${WORKSPACE}/post-build-lava.param
189 - shell:
190 !include-raw: tf-a-builder/test.sh
191 - groovy-postbuild:
192 script:
193 !include-raw:
194 - tf-a-builder/test.groovy
195