blob: 00ca73bd83faf4f1c909902f09610932a731f602 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin8d6aae02023-01-20 11:15:51 +08002# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
Dean Birche4cbc7c2020-01-20 10:40:21 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-lava-submit
10 description: 'Generates and submits LAVA jobs'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
Riku Voipiod4ea5342020-09-04 16:00:02 +030015 properties:
Matthew Hartdb4cc382020-10-13 16:13:58 +010016 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 6000
Fathi Boudra57ba4302020-11-10 12:56:53 +010019# Instance specific parameters can be set as environment variables in
20# * docker image (ENV)
21# * Jenkins -> configure system -> global properties -> environment variables
22# e.g. DOCKER_PREFIX, LICENSE_VARIABLE
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 parameters:
Saheer Babu67c01782024-11-20 21:09:47 +000024
25 - string:
26 name: 'CONFIG_NAME'
27 - string:
28 name: 'TFM_PLATFORM'
29 description: |
30 Specifies the target platform.
31 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
32 default: ''
33 - string:
34 name: 'ISOLATION_LEVEL'
35 default: '1'
36 - string:
37 name: 'TEST_REGRESSION'
38 default: 'False'
39 - string:
40 name: 'TEST_PSA_API'
41 default: 'OFF'
42 - string:
43 name: 'PROFILE'
44 default: 'N.A'
45 - string:
46 name: 'EXTRA_PARAMS'
47 default: 'N.A'
48 - string:
49 name: 'GERRIT_HOST'
50 default: ''
51 description: |
52 No need to change.
53 - string:
54 name: 'GERRIT_PATCHSET_REVISION'
55 default: ''
56 description: |
57 No need to change.
58 - string:
59 name: 'GERRIT_CHANGE_NUMBER'
60 default: ''
61 description: |
62 No need to change.
63 - string:
64 name: 'MCUBOOT_REFSPEC'
65 default: ''
66 description: |
67 Specify which MCUboot version to use
68 refs/heads/<branch_name> : Pick up latest HEAD on branch
69 TAG_NAME : Pick up a tagged version
70 full commit hash : Pick up a specific commit
71 - string:
72 name: 'MCUBOOT_URL'
73 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
74 - string:
75 name: 'TFM_TESTS_URL'
76 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
77 - string:
78 name: 'TFM_TESTS_REFSPEC'
79 default: ''
80 description: |
81 Specify which tf-m-tests version to use
82 refs/heads/<branch_name> : Pick up latest HEAD on branch
83 TAG_NAME : Pick up a tagged version
84 full commit hash : Pick up a specific commit
85 - string:
86 name: 'TFM_EXTRAS_URL'
87 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
88 - string:
89 name: 'TFM_EXTRAS_REFSPEC'
90 default: ''
91 description: |
92 Specify which tf-m-extras version to use
93 refs/heads/<branch_name> : Pick up latest HEAD on branch
94 TAG_NAME : Pick up a tagged version
95 full commit hash : Pick up a specific commit
96 - string:
97 name: 'PSA_ARCH_TESTS_URL'
98 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
99 - string:
100 name: 'PSA_ARCH_TESTS_VERSION'
101 default: ''
102 description: |
103 Specify which psa-arch-tests version to use
104 refs/heads/<branch_name> : Pick up latest HEAD on branch
105 TAG_NAME : Pick up a tagged version
106 full commit hash : Pick up a specific commit
107 - string:
108 name: 'QCBOR_URL'
109 default: 'https://github.com/laurencelundblade/QCBOR.git'
110 - string:
111 name: 'QCBOR_VERSION'
112 default: ''
113 description: |
114 Specify which QCBOR version to use
115 refs/heads/<branch_name> : Pick up latest HEAD on branch
116 TAG_NAME : Pick up a tagged version
117 full commit hash : Pick up a specific commit
118 - string:
119 name: 'CODE_COVERAGE_EN'
120 default: 'FALSE'
121 - string:
122 name: SHARE_FOLDER
123 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
124 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000125 - string:
Saheer Babua82e8d82025-02-10 12:18:13 +0000126 name: DOCKER_PREFIX
127 default: ${PRIVATE_CONTAINER_REGISTRY}
128 description: PRIVATE_CONTAINER_REGISTRY is a system-wide environment variable
129 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000130 name: 'TARGET_PLATFORM'
131 description: |
132 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +0100133 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000134 default: ''
135 - string:
136 name: 'PROJ_CONFIG'
137 description: |
138 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +0100139 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000140 default: ''
141 - string:
142 name: 'COMPILER'
143 description: |
144 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +0100145 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000146 default: ''
147 - string:
148 name: 'CMAKE_BUILD_TYPE'
149 description: |
150 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +0100151 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000152 default: ''
153 - string:
154 name: 'BL2'
155 default: 'True'
156 description: |
157 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +0100158 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_secure_boot.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000159 - string:
160 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +0800161 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000162 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800163 Specify which TF-M version to use
164 refs/heads/<branch_name> : Pick up latest HEAD on branch
165 TAG_NAME : Pick up a tagged version
166 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +0000167 - string:
168 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +0800169 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000170 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800171 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +0000172 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +0100173 name: 'CODE_REPO'
174 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
175 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000176 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +0300177 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000178 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +0100179 name: 'CI_SCRIPTS_BRANCH'
180 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +0300181 description: |
182 Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000183 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800184 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800185 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800186 description: |
187 Specify which MBEDTLS version to use
188 refs/heads/<branch_name> : Pick up latest HEAD on branch
189 TAG_NAME : Pick up a tagged version
190 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800191 - string:
192 name: 'MBEDTLS_URL'
193 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
194 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000195 name: 'BUILD_NUMBER'
196 default: ''
197 - string:
198 name: 'BUILD_URL'
199 default: ''
200 - string:
201 name: 'LAVA_URL'
202 default: 'https://tf.validation.linaro.org'
203 - string:
Matthew Harta5bc91c2020-05-26 23:37:59 +0100204 name: 'PSA_API_SUITE'
205 default: ''
Dean Birchc4d4d672020-08-12 10:38:58 +0100206 - string:
Leonardo Sandoval35dd14e2021-04-16 11:49:58 -0500207 name: 'CODE_COVERAGE_EN'
208 default: 'FALSE'
209 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100210 name: 'LAVA_CREDENTIALS'
211 default: 'LAVA_CREDENTIALS'
212 description: "Name of Jenkins credential for authentication with LAVA."
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300213 - string:
214 name: 'DEVICE_FILTER'
215 default: ''
216 description: |
217 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800218 wrappers:
219 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000220 pipeline-scm:
221 scm:
222 - git:
223 url: '$CI_SCRIPTS_REPO'
224 branches:
225 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300226 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000227 credentials-id: GIT_SSH_KEY
228 wipe-workspace: false
229 script-path: jenkins/lava-submit.jpl