blob: 3e901c8d96712e7a45a7140e11d6f426736c4c32 [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'
27 # TODO once available, use a group that filters to configurations we want
Antonio de Angelis3daf29f2023-08-07 15:06:12 +020028 default: 'pp_test pp_corstone1000'
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 description: |
30 Filter to a group of configurations as recognised by configs.py
31 - string:
32 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010033 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000034 - string:
35 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030036 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000037 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010038 name: 'CI_SCRIPTS_BRANCH'
39 default: 'master'
40 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080042 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000043 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080044 Specify which TF-M version to use
45 refs/heads/<branch_name> : Pick up latest HEAD on branch
46 TAG_NAME : Pick up a tagged version
47 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000048 - string:
49 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080050 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000051 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080052 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000053 - string:
54 name: 'GERRIT_HOST'
55 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080056 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000057 - string:
58 name: 'GERRIT_CHANGE_NUMBER'
59 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080060 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000061 - string:
62 name: 'GERRIT_PATCHSET_REVISION'
63 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080064 No need to change.
Dean Birche4cbc7c2020-01-20 10:40:21 +000065 - 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'
76 - string:
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030077 name: 'MCUBOOT_URL'
78 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
79 - string:
80 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080081 default: ''
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030082 description: |
83 Specify which MCUboot version to use
Xinyu Zhang8926ad32023-02-15 14:43:38 +080084 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
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030087 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030088 name: 'TFM_TESTS_URL'
89 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
90 - string:
91 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang004f3422023-06-27 12:02:31 +080092 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080093 description: |
94 Specify which tf-m-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
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030098 - string:
Xinyu Zhang9dd88422023-07-03 11:02:21 +080099 name: 'TFM_EXTRAS_URL'
100 default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
101 - string:
102 name: 'TFM_EXTRAS_REFSPEC'
103 default: ''
104 description: |
105 Specify which tf-m-extras 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
109 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +0300110 name: 'PSA_ARCH_TESTS_URL'
111 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
112 - string:
113 name: 'PSA_ARCH_TESTS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800114 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800115 description: |
116 Specify which psa-arch-tests 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
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +0300120 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800121 name: 'QCBOR_URL'
122 default: 'https://github.com/laurencelundblade/QCBOR.git'
123 - string:
124 name: 'QCBOR_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +0800125 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +0800126 description: |
127 Specify which QCBOR version to use
128 refs/heads/<branch_name> : Pick up latest HEAD on branch
129 TAG_NAME : Pick up a tagged version
130 full commit hash : Pick up a specific commit
Xinyu Zhang79e1aa12022-11-23 17:50:21 +0800131 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000132 name: 'LAVA_URL'
133 default: 'https://tf.validation.linaro.org'
134 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +0800135 name: 'CODE_COVERAGE_EN'
136 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +0100137 - string:
138 name: 'LAVA_CREDENTIALS'
139 default: 'LAVA_CREDENTIALS'
140 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500141 - string:
142 name: SHARE_FOLDER
143 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
144 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300145 - string:
146 name: 'DEVICE_FILTER'
147 default: ''
148 description: |
149 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800150 wrappers:
151 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000152 pipeline-scm:
153 scm:
154 - git:
155 url: '$CI_SCRIPTS_REPO'
156 branches:
157 - '$CI_SCRIPTS_BRANCH'
158 credentials-id: GIT_SSH_KEY
159 wipe-workspace: false
160 script-path: jenkins/ci.jpl