blob: 3659b9f0c355b3b57d858e9ed45116f05f0eec60 [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 Angelisf00483b2023-05-02 18:01:00 +020028 default: 'pp_test'
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'
42 default: 'refs/heads/master'
43 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'
50 default: 'master'
51 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:
99 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
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +0300109 - 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:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000121 name: 'LAVA_URL'
122 default: 'https://tf.validation.linaro.org'
123 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +0800124 name: 'CODE_COVERAGE_EN'
125 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +0100126 - string:
Xinyu Zhang1a4d1102022-10-18 17:39:01 +0800127 name: 'SQUAD_CONFIGURATIONS'
128 default: 'disabled'
129 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
130 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100131 name: 'LAVA_CREDENTIALS'
132 default: 'LAVA_CREDENTIALS'
133 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500134 - string:
135 name: SHARE_FOLDER
136 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
137 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300138 - string:
139 name: 'DEVICE_FILTER'
140 default: ''
141 description: |
142 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 +0800143 wrappers:
144 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000145 pipeline-scm:
146 scm:
147 - git:
148 url: '$CI_SCRIPTS_REPO'
149 branches:
150 - '$CI_SCRIPTS_BRANCH'
151 credentials-id: GIT_SSH_KEY
152 wipe-workspace: false
153 script-path: jenkins/ci.jpl