blob: d9ad568b75c3f07c7b1458f60991189fcb777b5a [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'
31 default: 'refs/heads/master'
32 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'
39 default: 'master'
40 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:
88 name: 'PSA_ARCH_TESTS_URL'
89 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
90 - string:
91 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080092 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080093 description: |
94 Specify which psa-arch-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
Leonardo Sandoval4a024212021-09-17 14:05:27 -050098 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +080099 name: 'QCBOR_URL'
100 default: 'https://github.com/laurencelundblade/QCBOR.git'
101 - string:
102 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800103 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800104 description: |
105 Specify which QCBOR 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
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800109 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500110 name: SHARE_FOLDER
111 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
112 description: 'Folder containing shared repositories for downstream pipeline jobs'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000113 triggers:
114 - gerrit:
115 trigger-on:
116 - comment-added-event:
117 approval-category: 'Allow-CI'
118 approval-value: '1'
119 projects:
120 - project-compare-type: 'PLAIN'
Dean Birch1817bb62020-06-02 14:00:23 +0100121 project-pattern: 'TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000122 branches:
123 - branch-compare-type: 'REG_EXP'
124 branch-pattern: 'master'
Dean Birchb1410132020-06-15 17:12:16 +0100125 override-votes: true
126 gerrit-build-successful-verified-value: 1
127 gerrit-build-failed-verified-value: -1
128 gerrit-build-unstable-verified-value: -1
129 gerrit-build-successful-codereview-value: 0
130 gerrit-build-failed-codereview-value: 0
131 gerrit-build-unstable-codereview-value: 0
Dean Birche4cbc7c2020-01-20 10:40:21 +0000132 notification-level: 'OWNER_REVIEWERS'
133 custom-url: $RUN_DISPLAY_URL
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800134 wrappers:
135 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000136 pipeline-scm:
137 scm:
138 - git:
139 url: '$CI_SCRIPTS_REPO'
140 branches:
141 - '$CI_SCRIPTS_BRANCH'
142 credentials-id: GIT_SSH_KEY
143 wipe-workspace: false
144 script-path: jenkins/static.jpl