Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Gergely Korcsák | 6235e90 | 2024-04-10 14:33:09 +0200 | [diff] [blame] | 2 | # Copyright (c) 2020-2024, 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-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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 19 | triggers: |
Paul Sokolovsky | 4005d7e | 2023-04-14 14:07:33 +0300 | [diff] [blame] | 20 | - timed: 'H 16 * * *' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 21 | parameters: |
| 22 | - string: |
| 23 | name: 'FILTER_GROUP' |
David Hu | e9b0dd7 | 2022-11-17 11:12:26 +0800 | [diff] [blame] | 24 | default: "nightly_test nightly_profile_s nightly_profile_m nightly_profile_m_arotless \ |
| 25 | nightly_profile_l nightly_cc_driver_psa nightly_fp nightly_psa_api \ |
Bence Balogh | 0da3dd9 | 2023-08-29 13:32:41 +0200 | [diff] [blame] | 26 | nightly_ipc_backend nightly_nsce nightly_mmio nightly_cs300_an547 \ |
Nicola Mazzucato | de45dad | 2024-05-21 11:29:19 +0100 | [diff] [blame] | 27 | nightly_cs300_an552 nightly_cs300_fvp \ |
| 28 | nightly_corstone310 nightly_corstone310_pacbti \ |
Gergely Korcsák | 6235e90 | 2024-04-10 14:33:09 +0200 | [diff] [blame] | 29 | nightly_corstone315 nightly_corstone1000 nightly_rse nightly_psoc64 \ |
Arthur She | c55cea2 | 2024-02-07 14:17:34 -0800 | [diff] [blame] | 30 | nightly_lpcxpresso55s69 nightly_b_u585i_iot02a nightly_stm32h573i_dk" |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 31 | description: | |
| 32 | Filter to a group of configurations as recognised by configs.py |
| 33 | - string: |
| 34 | name: 'CODE_REPO' |
Paul Sokolovsky | bfd1ae2 | 2024-04-25 20:50:04 +0700 | [diff] [blame] | 35 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 36 | - string: |
| 37 | name: 'CI_SCRIPTS_REPO' |
Paul Sokolovsky | bfd1ae2 | 2024-04-25 20:50:04 +0700 | [diff] [blame] | 38 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 39 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 40 | name: 'CI_SCRIPTS_BRANCH' |
| 41 | default: 'master' |
| 42 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 43 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 44 | default: 'refs/heads/main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 45 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 46 | Specify which TF-M version to use |
| 47 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 48 | TAG_NAME : Pick up a tagged version |
| 49 | full commit hash : Pick up a specific commit |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 50 | - string: |
| 51 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 52 | default: 'main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 53 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 54 | TF-M branch. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 55 | - string: |
| 56 | name: 'GERRIT_HOST' |
| 57 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 58 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 59 | - string: |
| 60 | name: 'GERRIT_CHANGE_NUMBER' |
| 61 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 62 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 63 | - string: |
| 64 | name: 'GERRIT_PATCHSET_REVISION' |
| 65 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 66 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 67 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 68 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 69 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 70 | description: | |
| 71 | Specify which MBEDTLS version to use |
| 72 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 73 | TAG_NAME : Pick up a tagged version |
| 74 | full commit hash : Pick up a specific commit |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 75 | - string: |
| 76 | name: 'MBEDTLS_URL' |
| 77 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 78 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 79 | name: 'LAVA_URL' |
| 80 | default: 'https://tf.validation.linaro.org' |
| 81 | - string: |
Karl Zhang | 68a81b4 | 2020-07-24 18:38:08 +0800 | [diff] [blame] | 82 | name: 'CODE_COVERAGE_EN' |
| 83 | default: 'FALSE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 84 | - string: |
| 85 | name: 'LAVA_CREDENTIALS' |
| 86 | default: 'LAVA_CREDENTIALS' |
| 87 | description: "Name of Jenkins credential for authentication with LAVA." |
Karl Zhang | debc2ab | 2020-09-18 14:28:30 +0800 | [diff] [blame] | 88 | - string: |
| 89 | name: 'EMAIL_NOTIFICATION' |
Matthew Dalzell | 839505e | 2024-05-21 15:20:30 +0100 | [diff] [blame] | 90 | 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 Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 91 | description: | |
Matthew Dalzell | 839505e | 2024-05-21 15:20:30 +0100 | [diff] [blame] | 92 | Send email notification when test failed. |
Hugo L'Hostis | ad58649 | 2021-01-06 11:53:30 +0000 | [diff] [blame] | 93 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 94 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 95 | default: '' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 96 | description: | |
| 97 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 98 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 99 | TAG_NAME : Pick up a tagged version |
| 100 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 101 | - string: |
| 102 | name: 'MCUBOOT_URL' |
| 103 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 104 | - string: |
| 105 | name: 'TFM_TESTS_URL' |
| 106 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 107 | - string: |
| 108 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 109 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 110 | description: | |
| 111 | Specify which tf-m-tests version to use |
| 112 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 113 | TAG_NAME : Pick up a tagged version |
| 114 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 115 | - string: |
Xinyu Zhang | 9dd8842 | 2023-07-03 11:02:21 +0800 | [diff] [blame] | 116 | name: 'TFM_EXTRAS_URL' |
Paul Sokolovsky | 1f7ce52 | 2024-04-26 18:25:28 +0700 | [diff] [blame] | 117 | default: 'https://review.trustedfirmware.org/TF-M/tf-m-extras.git' |
Xinyu Zhang | 9dd8842 | 2023-07-03 11:02:21 +0800 | [diff] [blame] | 118 | - string: |
| 119 | name: 'TFM_EXTRAS_REFSPEC' |
| 120 | default: '' |
| 121 | description: | |
| 122 | Specify which tf-m-extras version to use |
| 123 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 124 | TAG_NAME : Pick up a tagged version |
| 125 | full commit hash : Pick up a specific commit |
| 126 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 127 | name: 'PSA_ARCH_TESTS_URL' |
| 128 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 129 | - string: |
| 130 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 131 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 132 | description: | |
| 133 | Specify which psa-arch-tests version to use |
| 134 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 135 | TAG_NAME : Pick up a tagged version |
| 136 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 137 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 138 | name: 'QCBOR_URL' |
| 139 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 140 | - string: |
| 141 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 142 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 143 | description: | |
| 144 | Specify which QCBOR version to use |
| 145 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 146 | TAG_NAME : Pick up a tagged version |
| 147 | full commit hash : Pick up a specific commit |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 148 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 149 | name: SHARE_FOLDER |
| 150 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 151 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Paul Sokolovsky | 88d298a | 2023-12-07 12:35:25 +0300 | [diff] [blame] | 152 | - string: |
| 153 | name: 'DEVICE_FILTER' |
| 154 | default: '' |
| 155 | description: | |
| 156 | Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only) |
Paul Sokolovsky | d6c71b5 | 2024-03-30 12:52:20 +0700 | [diff] [blame] | 157 | - string: |
| 158 | name: USE_TUXSUITE_FVP |
Paul Sokolovsky | aeeb087 | 2024-04-17 15:42:42 +0700 | [diff] [blame] | 159 | default: 1 |
Paul Sokolovsky | d6c71b5 | 2024-03-30 12:52:20 +0700 | [diff] [blame] | 160 | description: | |
| 161 | Whether to submit FVP tests via TuxSuite (instead of LAVA) |
Paul Sokolovsky | e4aaccf | 2024-04-26 17:38:48 +0700 | [diff] [blame] | 162 | - string: |
| 163 | name: 'BUILD_JOBS' |
| 164 | default: '2' |
| 165 | description: | |
| 166 | --jobs to pass to make, etc. |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 167 | wrappers: |
| 168 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 169 | pipeline-scm: |
| 170 | scm: |
| 171 | - git: |
| 172 | url: '$CI_SCRIPTS_REPO' |
| 173 | branches: |
| 174 | - '$CI_SCRIPTS_BRANCH' |
| 175 | credentials-id: GIT_SSH_KEY |
| 176 | wipe-workspace: false |
| 177 | script-path: jenkins/ci.jpl |