Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
David Vincze | 16a9dac | 2023-01-06 15:16:47 +0100 | [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-build-and-test |
| 10 | description: 'This job is triggered by gerrit for TF-M code reviews.' |
| 11 | project-type: pipeline |
| 12 | disabled: false |
| 13 | sandbox: true |
Dean Birch | a818da4 | 2020-05-26 14:46:21 +0100 | [diff] [blame] | 14 | concurrent: true |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 15 | properties: |
| 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 45 |
Dean Birch | a818da4 | 2020-05-26 14:46:21 +0100 | [diff] [blame] | 19 | - throttle: |
| 20 | max-total: 5 |
| 21 | option: project |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 22 | # Will be triggered from tf-m-static-checks or can be triggered manually |
| 23 | #triggers: [] |
| 24 | parameters: |
| 25 | - string: |
| 26 | name: 'FILTER_GROUP' |
| 27 | # TODO once available, use a group that filters to configurations we want |
Antonio de Angelis | 3daf29f | 2023-08-07 15:06:12 +0200 | [diff] [blame] | 28 | default: 'pp_test pp_corstone1000' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 29 | description: | |
| 30 | Filter to a group of configurations as recognised by configs.py |
| 31 | - string: |
| 32 | name: 'CODE_REPO' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 33 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 34 | - string: |
| 35 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 36 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 37 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 38 | name: 'CI_SCRIPTS_BRANCH' |
| 39 | default: 'master' |
| 40 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 41 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 42 | default: 'refs/heads/main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 43 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 44 | Specify which TF-M version to use |
| 45 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 46 | TAG_NAME : Pick up a tagged version |
| 47 | full commit hash : Pick up a specific commit |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 48 | - string: |
| 49 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 50 | default: 'main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 51 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 52 | TF-M branch. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 53 | - string: |
| 54 | name: 'GERRIT_HOST' |
| 55 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 56 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 57 | - string: |
| 58 | name: 'GERRIT_CHANGE_NUMBER' |
| 59 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 60 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 61 | - string: |
| 62 | name: 'GERRIT_PATCHSET_REVISION' |
| 63 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 64 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 65 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 66 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 67 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 68 | description: | |
| 69 | Specify which MBEDTLS version to use |
| 70 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 71 | TAG_NAME : Pick up a tagged version |
| 72 | full commit hash : Pick up a specific commit |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 73 | - string: |
| 74 | name: 'MBEDTLS_URL' |
| 75 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 76 | - string: |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 77 | name: 'MCUBOOT_URL' |
| 78 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 79 | - string: |
| 80 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 81 | default: '' |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 82 | description: | |
| 83 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 84 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 85 | TAG_NAME : Pick up a tagged version |
| 86 | full commit hash : Pick up a specific commit |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 87 | - string: |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 88 | name: 'TFM_TESTS_URL' |
| 89 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 90 | - string: |
| 91 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 92 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 93 | description: | |
| 94 | Specify which tf-m-tests version to use |
| 95 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 96 | TAG_NAME : Pick up a tagged version |
| 97 | full commit hash : Pick up a specific commit |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 98 | - string: |
Xinyu Zhang | 9dd8842 | 2023-07-03 11:02:21 +0800 | [diff] [blame] | 99 | name: 'TFM_EXTRAS_URL' |
| 100 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git' |
| 101 | - string: |
| 102 | name: 'TFM_EXTRAS_REFSPEC' |
| 103 | default: '' |
| 104 | description: | |
| 105 | Specify which tf-m-extras version to use |
| 106 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 107 | TAG_NAME : Pick up a tagged version |
| 108 | full commit hash : Pick up a specific commit |
| 109 | - string: |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 110 | name: 'PSA_ARCH_TESTS_URL' |
| 111 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 112 | - string: |
| 113 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 114 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 115 | description: | |
| 116 | Specify which psa-arch-tests version to use |
| 117 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 118 | TAG_NAME : Pick up a tagged version |
| 119 | full commit hash : Pick up a specific commit |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 120 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 121 | name: 'QCBOR_URL' |
| 122 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 123 | - string: |
| 124 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 125 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 126 | description: | |
| 127 | Specify which QCBOR version to use |
| 128 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 129 | TAG_NAME : Pick up a tagged version |
| 130 | full commit hash : Pick up a specific commit |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 131 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 132 | name: 'LAVA_URL' |
| 133 | default: 'https://tf.validation.linaro.org' |
| 134 | - string: |
Karl Zhang | 68a81b4 | 2020-07-24 18:38:08 +0800 | [diff] [blame] | 135 | name: 'CODE_COVERAGE_EN' |
| 136 | default: 'FALSE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 137 | - string: |
| 138 | name: 'LAVA_CREDENTIALS' |
| 139 | default: 'LAVA_CREDENTIALS' |
| 140 | description: "Name of Jenkins credential for authentication with LAVA." |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 141 | - string: |
| 142 | name: SHARE_FOLDER |
| 143 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 144 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 145 | - string: |
| 146 | name: 'DEVICE_FILTER' |
| 147 | default: '' |
| 148 | description: | |
| 149 | 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] | 150 | wrappers: |
| 151 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 152 | pipeline-scm: |
| 153 | scm: |
| 154 | - git: |
| 155 | url: '$CI_SCRIPTS_REPO' |
| 156 | branches: |
| 157 | - '$CI_SCRIPTS_BRANCH' |
| 158 | credentials-id: GIT_SSH_KEY |
| 159 | wipe-workspace: false |
| 160 | script-path: jenkins/ci.jpl |