blob: 43179f9f884bd5705703d9bb934d7be4d91c4d44 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
David Vincze16a9dac2023-01-06 15:16:47 +01002# Copyright (c) 2020-2023, 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-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 Birche4cbc7c2020-01-20 10:40:21 +000019 parameters:
20 - string:
21 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010022 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 - string:
24 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030025 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000026 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010027 name: 'CI_SCRIPTS_BRANCH'
28 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030029 description: |
30 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 +010031 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000032 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080033 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000034 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080035 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 Birche4cbc7c2020-01-20 10:40:21 +000039 - string:
40 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080041 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000042 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080043 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000044 - string:
45 name: 'GERRIT_HOST'
46 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080047 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000048 - string:
49 name: 'GERRIT_CHANGE_NUMBER'
50 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080051 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000052 - string:
53 name: 'GERRIT_PATCHSET_REVISION'
54 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080055 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000056 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050057 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080058 default: ''
Leonardo Sandoval4a024212021-09-17 14:05:27 -050059 description: |
60 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +080061 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 Sandoval4a024212021-09-17 14:05:27 -050064 - string:
65 name: 'MCUBOOT_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
67 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080068 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080069 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080070 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 Zhang85c2d7a2020-08-20 11:17:58 +080075 - string:
76 name: 'MBEDTLS_URL'
77 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050078 - 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 Zhang004f3422023-06-27 12:02:31 +080083 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080084 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 Sandoval4a024212021-09-17 14:05:27 -050089 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +080090 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 Sandoval4a024212021-09-17 14:05:27 -0500101 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 Zhang004f3422023-06-27 12:02:31 +0800105 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800106 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 Sandoval4a024212021-09-17 14:05:27 -0500111 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800112 name: 'QCBOR_URL'
113 default: 'https://github.com/laurencelundblade/QCBOR.git'
114 - string:
115 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800116 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800117 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 Zhang79e1aa12022-11-23 17:50:21 +0800122 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500123 name: SHARE_FOLDER
124 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
125 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000126 triggers:
127 - gerrit:
128 trigger-on:
129 - comment-added-event:
130 approval-category: 'Allow-CI'
131 approval-value: '1'
132 projects:
133 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +0100134 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000135 branches:
136 - branch-compare-type: 'REG_EXP'
Xinyu Zhang4713b762023-09-25 11:08:01 +0800137 branch-pattern: 'main'
Dean Birchb1410132020-06-15 17:12:16 +0100138 override-votes: true
139 gerrit-build-successful-verified-value: 1
140 gerrit-build-failed-verified-value: -1
141 gerrit-build-unstable-verified-value: -1
142 gerrit-build-successful-codereview-value: 0
143 gerrit-build-failed-codereview-value: 0
144 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000145 notification-level: 'OWNER_REVIEWERS'
146 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800147 wrappers:
148 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000149 pipeline-scm:
150 scm:
151 - git:
152 url: '$CI_SCRIPTS_REPO'
153 branches:
154 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky73564802024-07-05 00:26:06 +0300155 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000156 credentials-id: GIT_SSH_KEY
157 wipe-workspace: false
158 script-path: jenkins/static.jpl