Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 8d6aae0 | 2023-01-20 11:15:51 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2023, Arm Limited. All rights reserved. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 3 | # |
| 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 Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 15 | properties: |
Matthew Hart | db4cc38 | 2020-10-13 16:13:58 +0100 | [diff] [blame] | 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 6000 |
Fathi Boudra | 57ba430 | 2020-11-10 12:56:53 +0100 | [diff] [blame] | 19 | # 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 23 | parameters: |
Saheer Babu | 67c0178 | 2024-11-20 21:09:47 +0000 | [diff] [blame] | 24 | |
| 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 125 | - string: |
Saheer Babu | a82e8d8 | 2025-02-10 12:18:13 +0000 | [diff] [blame] | 126 | name: DOCKER_PREFIX |
| 127 | default: ${PRIVATE_CONTAINER_REGISTRY} |
| 128 | description: PRIVATE_CONTAINER_REGISTRY is a system-wide environment variable |
| 129 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 130 | name: 'TARGET_PLATFORM' |
| 131 | description: | |
| 132 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 133 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 134 | default: '' |
| 135 | - string: |
| 136 | name: 'PROJ_CONFIG' |
| 137 | description: | |
| 138 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 139 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 140 | default: '' |
| 141 | - string: |
| 142 | name: 'COMPILER' |
| 143 | description: | |
| 144 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 145 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 146 | default: '' |
| 147 | - string: |
| 148 | name: 'CMAKE_BUILD_TYPE' |
| 149 | description: | |
| 150 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 151 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 152 | default: '' |
| 153 | - string: |
| 154 | name: 'BL2' |
| 155 | default: 'True' |
| 156 | description: | |
| 157 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 158 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 159 | - string: |
| 160 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 161 | default: 'refs/heads/main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 162 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 163 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 167 | - string: |
| 168 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 169 | default: 'main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 170 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 171 | TF-M branch. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 172 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 173 | name: 'CODE_REPO' |
| 174 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 175 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 176 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 177 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 178 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 179 | name: 'CI_SCRIPTS_BRANCH' |
| 180 | default: 'master' |
Paul Sokolovsky | fbb0d13 | 2024-07-12 20:20:03 +0300 | [diff] [blame] | 181 | description: | |
| 182 | Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 183 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 184 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 185 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 186 | 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 Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 191 | - string: |
| 192 | name: 'MBEDTLS_URL' |
| 193 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 194 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 195 | 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 Hart | a5bc91c | 2020-05-26 23:37:59 +0100 | [diff] [blame] | 204 | name: 'PSA_API_SUITE' |
| 205 | default: '' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 206 | - string: |
Leonardo Sandoval | 35dd14e | 2021-04-16 11:49:58 -0500 | [diff] [blame] | 207 | name: 'CODE_COVERAGE_EN' |
| 208 | default: 'FALSE' |
| 209 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 210 | name: 'LAVA_CREDENTIALS' |
| 211 | default: 'LAVA_CREDENTIALS' |
| 212 | description: "Name of Jenkins credential for authentication with LAVA." |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 213 | - 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 Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 218 | wrappers: |
| 219 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 220 | pipeline-scm: |
| 221 | scm: |
| 222 | - git: |
| 223 | url: '$CI_SCRIPTS_REPO' |
| 224 | branches: |
| 225 | - '$CI_SCRIPTS_BRANCH' |
Paul Sokolovsky | 60a13ac | 2024-07-05 11:52:04 +0300 | [diff] [blame] | 226 | refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 227 | credentials-id: GIT_SSH_KEY |
| 228 | wipe-workspace: false |
| 229 | script-path: jenkins/lava-submit.jpl |