blob: cdb9b762ef3a260ea42e83d1ebd088245f9837ff [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-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 Bircha818da42020-05-26 14:46:21 +010014 concurrent: true
Dean Birche4cbc7c2020-01-20 10:40:21 +000015 properties:
16 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 45
Dean Bircha818da42020-05-26 14:46:21 +010019 - throttle:
20 max-total: 5
21 option: project
Dean Birche4cbc7c2020-01-20 10:40:21 +000022 # Will be triggered from tf-m-static-checks or can be triggered manually
23 #triggers: []
24 parameters:
25 - string:
26 name: 'FILTER_GROUP'
Xinyu Zhang8ce89622023-10-31 16:39:45 +080027 default: 'pp_test'
Dean Birche4cbc7c2020-01-20 10:40:21 +000028 description: |
29 Filter to a group of configurations as recognised by configs.py
30 - string:
31 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010032 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000033 - string:
34 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030035 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000036 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010037 name: 'CI_SCRIPTS_BRANCH'
38 default: 'master'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030039 description: |
40 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 +010041 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000042 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080043 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000044 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080045 Specify which TF-M version to use
46 refs/heads/<branch_name> : Pick up latest HEAD on branch
47 TAG_NAME : Pick up a tagged version
48 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000049 - string:
50 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080051 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000052 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080053 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000054 - string:
55 name: 'GERRIT_HOST'
56 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080057 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000058 - string:
59 name: 'GERRIT_CHANGE_NUMBER'
60 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080061 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000062 - string:
63 name: 'GERRIT_PATCHSET_REVISION'
64 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080065 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000066 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080067 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080068 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080069 description: |
70 Specify which MBEDTLS version to use
71 refs/heads/<branch_name> : Pick up latest HEAD on branch
72 TAG_NAME : Pick up a tagged version
73 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080074 - string:
75 name: 'MBEDTLS_URL'
76 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
77 - string:
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030078 name: 'MCUBOOT_URL'
79 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
80 - string:
81 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080082 default: ''
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030083 description: |
84 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +080085 refs/heads/<branch_name> : Pick up latest HEAD on branch
86 TAG_NAME : Pick up a tagged version
87 full commit hash : Pick up a specific commit
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030088 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030089 name: 'TFM_TESTS_URL'
90 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
91 - string:
92 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080093 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080094 description: |
95 Specify which tf-m-tests version to use
96 refs/heads/<branch_name> : Pick up latest HEAD on branch
97 TAG_NAME : Pick up a tagged version
98 full commit hash : Pick up a specific commit
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030099 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +0800100 name: 'TFM_EXTRAS_URL'
101 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
102 - string:
103 name: 'TFM_EXTRAS_REFSPEC'
104 default: ''
105 description: |
106 Specify which tf-m-extras version to use
107 refs/heads/<branch_name> : Pick up latest HEAD on branch
108 TAG_NAME : Pick up a tagged version
109 full commit hash : Pick up a specific commit
110 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +0300111 name: 'PSA_ARCH_TESTS_URL'
112 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
113 - string:
114 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800115 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800116 description: |
117 Specify which psa-arch-tests version to use
118 refs/heads/<branch_name> : Pick up latest HEAD on branch
119 TAG_NAME : Pick up a tagged version
120 full commit hash : Pick up a specific commit
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +0300121 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800122 name: 'QCBOR_URL'
123 default: 'https://github.com/laurencelundblade/QCBOR.git'
124 - string:
125 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800126 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800127 description: |
128 Specify which QCBOR version to use
129 refs/heads/<branch_name> : Pick up latest HEAD on branch
130 TAG_NAME : Pick up a tagged version
131 full commit hash : Pick up a specific commit
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800132 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000133 name: 'LAVA_URL'
134 default: 'https://tf.validation.linaro.org'
135 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +0800136 name: 'CODE_COVERAGE_EN'
137 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +0100138 - string:
139 name: 'LAVA_CREDENTIALS'
140 default: 'LAVA_CREDENTIALS'
141 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500142 - string:
143 name: SHARE_FOLDER
144 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
145 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300146 - string:
147 name: 'DEVICE_FILTER'
148 default: ''
149 description: |
150 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Paul Sokolovskya3897922024-03-28 14:21:13 +0700151 - string:
152 name: USE_TUXSUITE_FVP
Paul Sokolovsky592eee22024-04-20 11:48:24 +0700153 default: 1
Paul Sokolovskya3897922024-03-28 14:21:13 +0700154 description: |
155 Whether to submit FVP tests via TuxSuite (instead of LAVA)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800156 wrappers:
157 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000158 pipeline-scm:
159 scm:
160 - git:
161 url: '$CI_SCRIPTS_REPO'
162 branches:
163 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300164 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000165 credentials-id: GIT_SSH_KEY
166 wipe-workspace: false
167 script-path: jenkins/ci.jpl