blob: 6a615809c113fc77372db7bd764cebe508f675da [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
David Vinczefcb6bb22025-01-10 17:32:24 +00002# Copyright (c) 2020-2025, 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-nightly
10 description: 'Build that triggers nightly to build many configurations.'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 45
Dean Birche4cbc7c2020-01-20 10:40:21 +000019 triggers:
Matthew Dalzell69b20c72024-07-11 10:36:42 +010020 - timed: 'H 23 * * *'
Dean Birche4cbc7c2020-01-20 10:40:21 +000021 parameters:
22 - string:
23 name: 'FILTER_GROUP'
David Hue9b0dd72022-11-17 11:12:26 +080024 default: "nightly_test nightly_profile_s nightly_profile_m nightly_profile_m_arotless \
Antonio de Angelis40de6ef2025-06-28 22:37:36 +010025 nightly_profile_l nightly_cc_driver_psa nightly_cc3xx_runtime_enabled nightly_fp nightly_psa_api \
Bence Balogh0da3dd92023-08-29 13:32:41 +020026 nightly_ipc_backend nightly_nsce nightly_mmio nightly_cs300_an547 \
Nicola Mazzucatode45dad2024-05-21 11:29:19 +010027 nightly_cs300_an552 nightly_cs300_fvp \
28 nightly_corstone310 nightly_corstone310_pacbti \
Gergely Korcsák77799202024-08-05 07:47:37 +020029 nightly_corstone315 nightly_corstone320 \
Antonio de Angelis05d9ef52025-02-06 11:39:01 +000030 nightly_corstone1000 nightly_rse_tc4 nightly_psoc64 \
Matthew Dalzell447d0e42025-05-16 11:56:41 +010031 nightly_lpcxpresso55s69 nightly_b_u585i_iot02a nightly_stm32h573i_dk \
32 nightly_rse_rdv3r1"
Dean Birche4cbc7c2020-01-20 10:40:21 +000033 description: |
34 Filter to a group of configurations as recognised by configs.py
35 - string:
36 name: 'CODE_REPO'
Paul Sokolovskybfd1ae22024-04-25 20:50:04 +070037 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000038 - string:
39 name: 'CI_SCRIPTS_REPO'
Paul Sokolovskybfd1ae22024-04-25 20:50:04 +070040 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010042 name: 'CI_SCRIPTS_BRANCH'
43 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030044 description: |
45 Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1'
Fathi Boudraccaba542020-11-19 10:11:43 +010046 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000047 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080048 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000049 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080050 Specify which TF-M version to use
51 refs/heads/<branch_name> : Pick up latest HEAD on branch
52 TAG_NAME : Pick up a tagged version
53 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000054 - string:
55 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080056 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000057 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080058 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000059 - string:
60 name: 'GERRIT_HOST'
61 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080062 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000063 - string:
64 name: 'GERRIT_CHANGE_NUMBER'
65 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080066 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000067 - string:
68 name: 'GERRIT_PATCHSET_REVISION'
69 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080070 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000071 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080072 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080073 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080074 description: |
75 Specify which MBEDTLS version to use
76 refs/heads/<branch_name> : Pick up latest HEAD on branch
77 TAG_NAME : Pick up a tagged version
78 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080079 - string:
80 name: 'MBEDTLS_URL'
81 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
82 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000083 name: 'LAVA_URL'
84 default: 'https://tf.validation.linaro.org'
85 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +080086 name: 'CODE_COVERAGE_EN'
87 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +010088 - string:
89 name: 'LAVA_CREDENTIALS'
90 default: 'LAVA_CREDENTIALS'
91 description: "Name of Jenkins credential for authentication with LAVA."
Karl Zhangdebc2ab2020-09-18 14:28:30 +080092 - string:
93 name: 'EMAIL_NOTIFICATION'
Matthew Dalzell839505e2024-05-21 15:20:30 +010094 default: 'tf-m-ci-notifications@lists.trustedfirmware.org, paul.sokolovsky@linaro.org, matthew.dalzell@arm.com, anton.komlev@arm.com, antonio.deangelis@arm.com'
Xinyu Zhang8926ad32023-02-15 14:43:38 +080095 description: |
Matthew Dalzell839505e2024-05-21 15:20:30 +010096 Send email notification when test failed.
Hugo L'Hostisad586492021-01-06 11:53:30 +000097 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050098 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080099 default: ''
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500100 description: |
101 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800102 refs/heads/<branch_name> : Pick up latest HEAD on branch
103 TAG_NAME : Pick up a tagged version
104 full commit hash : Pick up a specific commit
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500105 - string:
106 name: 'MCUBOOT_URL'
107 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
108 - string:
109 name: 'TFM_TESTS_URL'
110 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
111 - string:
112 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800113 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800114 description: |
115 Specify which tf-m-tests version to use
116 refs/heads/<branch_name> : Pick up latest HEAD on branch
117 TAG_NAME : Pick up a tagged version
118 full commit hash : Pick up a specific commit
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500119 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +0800120 name: 'TFM_EXTRAS_URL'
Paul Sokolovsky1f7ce522024-04-26 18:25:28 +0700121 default: 'https://review.trustedfirmware.org/TF-M/tf-m-extras.git'
Xinyu Zhang9dd88422023-07-03 11:02:21 +0800122 - string:
123 name: 'TFM_EXTRAS_REFSPEC'
124 default: ''
125 description: |
126 Specify which tf-m-extras version to use
127 refs/heads/<branch_name> : Pick up latest HEAD on branch
128 TAG_NAME : Pick up a tagged version
129 full commit hash : Pick up a specific commit
130 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500131 name: 'PSA_ARCH_TESTS_URL'
132 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
133 - string:
134 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800135 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800136 description: |
137 Specify which psa-arch-tests version to use
138 refs/heads/<branch_name> : Pick up latest HEAD on branch
139 TAG_NAME : Pick up a tagged version
140 full commit hash : Pick up a specific commit
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500141 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800142 name: 'QCBOR_URL'
143 default: 'https://github.com/laurencelundblade/QCBOR.git'
144 - string:
145 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800146 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800147 description: |
148 Specify which QCBOR version to use
149 refs/heads/<branch_name> : Pick up latest HEAD on branch
150 TAG_NAME : Pick up a tagged version
151 full commit hash : Pick up a specific commit
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800152 - string:
David Vinczefcb6bb22025-01-10 17:32:24 +0000153 name: 'T_COSE_URL'
154 default: 'https://github.com/laurencelundblade/t_cose.git'
155 - string:
156 name: 'T_COSE_VERSION'
157 default: ''
158 description: |
159 Specify which t_cose version to use
160 refs/heads/<branch_name> : Pick up latest HEAD on branch
161 TAG_NAME : Pick up a tagged version
162 full commit hash : Pick up a specific commit
163 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500164 name: SHARE_FOLDER
165 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
166 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovsky88d298a2023-12-07 12:35:25 +0300167 - string:
168 name: 'DEVICE_FILTER'
169 default: ''
170 description: |
171 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Paul Sokolovskyd6c71b52024-03-30 12:52:20 +0700172 - string:
173 name: USE_TUXSUITE_FVP
Paul Sokolovskyaeeb0872024-04-17 15:42:42 +0700174 default: 1
Paul Sokolovskyd6c71b52024-03-30 12:52:20 +0700175 description: |
176 Whether to submit FVP tests via TuxSuite (instead of LAVA)
Paul Sokolovskye4aaccf2024-04-26 17:38:48 +0700177 - string:
178 name: 'BUILD_JOBS'
179 default: '2'
180 description: |
181 --jobs to pass to make, etc.
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800182 wrappers:
183 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000184 pipeline-scm:
185 scm:
186 - git:
187 url: '$CI_SCRIPTS_REPO'
188 branches:
189 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300190 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000191 credentials-id: GIT_SSH_KEY
192 wipe-workspace: false
193 script-path: jenkins/ci.jpl