blob: 7a573a8f1b2a330b3eee203dba299892d5fae2bf [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'
29 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000030 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080031 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000032 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080033 Specify which TF-M version to use
34 refs/heads/<branch_name> : Pick up latest HEAD on branch
35 TAG_NAME : Pick up a tagged version
36 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000037 - string:
38 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080039 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000040 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080041 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000042 - string:
43 name: 'GERRIT_HOST'
44 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080045 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000046 - string:
47 name: 'GERRIT_CHANGE_NUMBER'
48 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080049 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000050 - string:
51 name: 'GERRIT_PATCHSET_REVISION'
52 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080053 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000054 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050055 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080056 default: ''
Leonardo Sandoval4a024212021-09-17 14:05:27 -050057 description: |
58 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +080059 refs/heads/<branch_name> : Pick up latest HEAD on branch
60 TAG_NAME : Pick up a tagged version
61 full commit hash : Pick up a specific commit
Leonardo Sandoval4a024212021-09-17 14:05:27 -050062 - string:
63 name: 'MCUBOOT_URL'
64 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
65 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080066 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080067 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080068 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 Zhang85c2d7a2020-08-20 11:17:58 +080073 - string:
74 name: 'MBEDTLS_URL'
75 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050076 - string:
77 name: 'TFM_TESTS_URL'
78 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
79 - string:
80 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080081 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080082 description: |
83 Specify which tf-m-tests version to use
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
Leonardo Sandoval4a024212021-09-17 14:05:27 -050087 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +080088 name: 'TFM_EXTRAS_URL'
89 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
90 - string:
91 name: 'TFM_EXTRAS_REFSPEC'
92 default: ''
93 description: |
94 Specify which tf-m-extras 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
98 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050099 name: 'PSA_ARCH_TESTS_URL'
100 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
101 - string:
102 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800103 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800104 description: |
105 Specify which psa-arch-tests 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
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500109 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800110 name: 'QCBOR_URL'
111 default: 'https://github.com/laurencelundblade/QCBOR.git'
112 - string:
113 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800114 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800115 description: |
116 Specify which QCBOR 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
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800120 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500121 name: SHARE_FOLDER
122 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
123 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000124 triggers:
125 - gerrit:
126 trigger-on:
127 - comment-added-event:
128 approval-category: 'Allow-CI'
129 approval-value: '1'
130 projects:
131 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +0100132 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000133 branches:
134 - branch-compare-type: 'REG_EXP'
Xinyu Zhang4713b762023-09-25 11:08:01 +0800135 branch-pattern: 'main'
Dean Birchb1410132020-06-15 17:12:16 +0100136 override-votes: true
137 gerrit-build-successful-verified-value: 1
138 gerrit-build-failed-verified-value: -1
139 gerrit-build-unstable-verified-value: -1
140 gerrit-build-successful-codereview-value: 0
141 gerrit-build-failed-codereview-value: 0
142 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000143 notification-level: 'OWNER_REVIEWERS'
144 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800145 wrappers:
146 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000147 pipeline-scm:
148 scm:
149 - git:
150 url: '$CI_SCRIPTS_REPO'
151 branches:
152 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky73564802024-07-05 00:26:06 +0300153 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000154 credentials-id: GIT_SSH_KEY
155 wipe-workspace: false
156 script-path: jenkins/static.jpl