Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
David Vincze | fcb6bb2 | 2025-01-10 17:32:24 +0000 | [diff] [blame] | 2 | # Copyright (c) 2020-2025, 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-static |
| 10 | description: 'Triggers static checks on Gerrit trigger, then triggers build job after.' |
| 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 | parameters: |
| 20 | - string: |
| 21 | name: 'CODE_REPO' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 22 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 23 | - string: |
| 24 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 25 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 26 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 27 | name: 'CI_SCRIPTS_BRANCH' |
| 28 | default: 'master' |
Paul Sokolovsky | fbb0d13 | 2024-07-12 20:20:03 +0300 | [diff] [blame] | 29 | description: | |
| 30 | Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1' |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 31 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 32 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 33 | default: 'refs/heads/main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 34 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 35 | Specify which TF-M version to use |
| 36 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 37 | TAG_NAME : Pick up a tagged version |
| 38 | full commit hash : Pick up a specific commit |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 39 | - string: |
| 40 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 41 | default: 'main' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 42 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 43 | TF-M branch. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 44 | - string: |
| 45 | name: 'GERRIT_HOST' |
| 46 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 47 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 48 | - string: |
| 49 | name: 'GERRIT_CHANGE_NUMBER' |
| 50 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 51 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 52 | - string: |
| 53 | name: 'GERRIT_PATCHSET_REVISION' |
| 54 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 55 | No need to change. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 56 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 57 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 58 | default: '' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 59 | description: | |
| 60 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 61 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 62 | TAG_NAME : Pick up a tagged version |
| 63 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 64 | - string: |
| 65 | name: 'MCUBOOT_URL' |
| 66 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 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' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 78 | - string: |
| 79 | name: 'TFM_TESTS_URL' |
| 80 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 81 | - string: |
| 82 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 83 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 84 | description: | |
| 85 | Specify which tf-m-tests version to use |
| 86 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 87 | TAG_NAME : Pick up a tagged version |
| 88 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 89 | - string: |
Xinyu Zhang | 9dd8842 | 2023-07-03 11:02:21 +0800 | [diff] [blame] | 90 | name: 'TFM_EXTRAS_URL' |
| 91 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git' |
| 92 | - string: |
| 93 | name: 'TFM_EXTRAS_REFSPEC' |
| 94 | default: '' |
| 95 | description: | |
| 96 | Specify which tf-m-extras version to use |
| 97 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 98 | TAG_NAME : Pick up a tagged version |
| 99 | full commit hash : Pick up a specific commit |
| 100 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 101 | name: 'PSA_ARCH_TESTS_URL' |
| 102 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 103 | - string: |
| 104 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 105 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 106 | description: | |
| 107 | Specify which psa-arch-tests version to use |
| 108 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 109 | TAG_NAME : Pick up a tagged version |
| 110 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 111 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 112 | name: 'QCBOR_URL' |
| 113 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 114 | - string: |
| 115 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 116 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 117 | description: | |
| 118 | Specify which QCBOR version to use |
| 119 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 120 | TAG_NAME : Pick up a tagged version |
| 121 | full commit hash : Pick up a specific commit |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 122 | - string: |
David Vincze | fcb6bb2 | 2025-01-10 17:32:24 +0000 | [diff] [blame] | 123 | name: 'T_COSE_URL' |
| 124 | default: 'https://github.com/laurencelundblade/t_cose.git' |
| 125 | - string: |
| 126 | name: 'T_COSE_VERSION' |
| 127 | default: '' |
| 128 | description: | |
| 129 | Specify which t_cose version to use |
| 130 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 131 | TAG_NAME : Pick up a tagged version |
| 132 | full commit hash : Pick up a specific commit |
| 133 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 134 | name: SHARE_FOLDER |
| 135 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 136 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 137 | triggers: |
| 138 | - gerrit: |
| 139 | trigger-on: |
| 140 | - comment-added-event: |
| 141 | approval-category: 'Allow-CI' |
| 142 | approval-value: '1' |
| 143 | projects: |
| 144 | - project-compare-type: 'PLAIN' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 145 | project-pattern: 'TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 146 | branches: |
| 147 | - branch-compare-type: 'REG_EXP' |
Xinyu Zhang | 4713b76 | 2023-09-25 11:08:01 +0800 | [diff] [blame] | 148 | branch-pattern: 'main' |
Dean Birch | b141013 | 2020-06-15 17:12:16 +0100 | [diff] [blame] | 149 | override-votes: true |
| 150 | gerrit-build-successful-verified-value: 1 |
| 151 | gerrit-build-failed-verified-value: -1 |
| 152 | gerrit-build-unstable-verified-value: -1 |
| 153 | gerrit-build-successful-codereview-value: 0 |
| 154 | gerrit-build-failed-codereview-value: 0 |
| 155 | gerrit-build-unstable-codereview-value: 0 |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 156 | notification-level: 'OWNER_REVIEWERS' |
| 157 | custom-url: $RUN_DISPLAY_URL |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 158 | wrappers: |
| 159 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 160 | pipeline-scm: |
| 161 | scm: |
| 162 | - git: |
| 163 | url: '$CI_SCRIPTS_REPO' |
| 164 | branches: |
| 165 | - '$CI_SCRIPTS_BRANCH' |
Paul Sokolovsky | 7356480 | 2024-07-05 00:26:06 +0300 | [diff] [blame] | 166 | 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] | 167 | credentials-id: GIT_SSH_KEY |
| 168 | wipe-workspace: false |
| 169 | script-path: jenkins/static.jpl |