blob: cb7799be8c229450fb9dce0d228acff57f3cf0a8 [file] [log] [blame]
Minos Galanakisda546842018-10-10 17:03:36 +01001#-------------------------------------------------------------------------------
Galanakis, Minos7b321792020-01-09 11:01:02 +00002# Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Minos Galanakisda546842018-10-10 17:03:36 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-build-test-review
10 description: 'This job is triggered by gerrit for TF-M code reviews.'
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
Riku Voipioe2beb0d2019-10-03 16:13:13 +030019 - authorization:
20 suihkulokki:
21 - job-read
22 - job-extended-read
23 - job-build
24 - job-cancel
Galanakis, Minosebf502a2019-10-07 10:42:10 +010025 minosgalanakis:
Riku Voipioe2beb0d2019-10-03 16:13:13 +030026 - job-read
27 - job-extended-read
28 - job-build
29 - job-cancel
30 bhcopeland:
31 - job-read
32 - job-extended-read
33 - job-build
34 - job-cancel
Minos Galanakisda546842018-10-10 17:03:36 +010035 triggers:
36 - gerrit:
37 trigger-on:
Galanakis, Minos648ab102019-09-10 13:56:47 +010038 - comment-added-event:
39 approval-category: 'Allow-CI'
40 approval-value: '1'
Minos Galanakisda546842018-10-10 17:03:36 +010041 dynamic-trigger-enabled: false
42 projects:
43 - project-compare-type: 'PLAIN'
44 project-pattern: 'trusted-firmware-m'
45 branches:
46 - branch-compare-type: 'REG_EXP'
47 branch-pattern: 'master'
48 disable-strict-forbidden-file-verification: false
49 skip-vote:
50 successful: false
51 failed: false
52 unstable: false
53 notbuilt: false
54 silent: false
55 silent-start: false
56 notification-level: 'OWNER_REVIEWERS'
57 parameters:
58 - string:
59 name: 'GERRIT_URL'
60 description: 'Base address of gerrit host'
61 default: 'https://review.trustedfirmware.org'
62 - string:
63 name: 'GERRIT_REFSPEC'
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010064 description: >
65 Git branch or "refspec" (e.g. rc3,
66 refs/changes/79/91279/2) to work on.
Minos Galanakisda546842018-10-10 17:03:36 +010067 default: 'master'
68 - string:
69 name: 'GERRIT_PROJECT'
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010070 description: >
71 Repository on gerrit server to test
72 against (e.g. iot-sw/tf-m/internal/tf-m
Minos Galanakisda546842018-10-10 17:03:36 +010073 default: 'trusted-firmware-m'
74 - string:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010075 name: 'REF_DEP_CHECKOUT_NAME'
76 description: >
77 Reference to the job to check out dependencies artifacts from
78 default: 'tf-m-dependencies-checkout'
Minos Galanakisda546842018-10-10 17:03:36 +010079 - string:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010080 name: 'DEPENDENCIES_ARCHIVE_NAME_ZIP'
81 description: 'Archive name of dependencies artifacts'
82 default: 'tfm_dependencies.zip'
Minos Galanakisda546842018-10-10 17:03:36 +010083 - string:
84 name: 'GERRIT_SCRIPTS'
85 description: 'Helper scripts used in conjuction with Jenkins'
86 default: 'ci/tf-m-ci-scripts'
87 - string:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010088 name: 'GERRIT_SCRIPTS_REFSP'
Minos Galanakisda546842018-10-10 17:03:36 +010089 description: 'Branch or refspec to checkout'
90 default: 'master'
91 - text:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +010092 name: 'BUILD_PARALLEL_NO'
93 description: "Number of parallel configuration builds."
94 default: '12'
95 - text:
96 name: 'BUILD_THREAD_NO'
97 description: "Number of build threads per configuration build."
98 default: '6'
99 - text:
Minos Galanakisda546842018-10-10 17:03:36 +0100100 name: 'BUILD_CONFIG_JSON'
101 description: "Build configuration json formatted."
102 - text:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100103 name: 'LAVA_TEST_CONFIG_JSON'
104 description: "Override LAVA Test configuration (json format)."
Minos Galanakisda546842018-10-10 17:03:36 +0100105 - string:
106 name: 'SUMMARY_FILE'
107 description: "Job output aggregrated summary file(Plain text)."
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100108 default: 'summary.json'
109 - string:
110 name: 'DEPENDENCIES_CONTENTS_FILE'
111 description: 'Artifact name for contents of archive.'
112 default: 'dependencies_checkout_contents.json'
113 - string:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100114 name: 'DEPENDENCIES_MBED_CRYPTO_TAG'
115 description: 'Selected version of mbed-crypto (from contents)'
Minos Galanakis9a8076a2020-02-21 14:00:46 +0000116 default: '3.0.1'
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100117 - string:
118 name: 'DEPENDENCIES_CMSIS_TAG'
119 description: 'Selected version of cmsis (from contents)'
120 default: '5.5.0'
121 - string:
122 name: 'DEPENDENCIES_FPV_TAG'
123 description: 'Selected version of fastmodel (from contents)'
124 default: ''
125 - string:
126 name: 'DEPENDENCIES_CHECKPATCH_TAG'
127 description: 'Selected version of checkpatch (from contents)'
128 default: '852d095'
129 - string:
130 name: 'FPGA_IMAGES_TAG_LIST'
131 description: >
132 FPGA image names (comma separated list) to be exposed to lava
133 default: 'mps2_an521_v3.0, mps2_an519_v3.0'
Minos Galanakisda546842018-10-10 17:03:36 +0100134 - string:
135 name: 'LAVA_URL'
Benjamin Copeland326f28b2020-02-26 16:14:24 +0000136 default: 'https://tf.validation.linaro.org'
Minos Galanakisda546842018-10-10 17:03:36 +0100137 description: 'URL of the LAVA instance.'
138 - string:
139 name: 'LAVA_CREDENTIAL_ID'
Dean Arnold83f1af22019-05-15 20:58:03 +0100140 default: 'LAVA_TOKEN'
Minos Galanakisda546842018-10-10 17:03:36 +0100141 description: |
142 'ID of the Jenkins credential containing a LAVA auth token.'
143 - string:
Minos Galanakisda546842018-10-10 17:03:36 +0100144 name: 'MAINTAINER_EMAIL'
145 description: 'Person to be notified of failure ( empty = disable )'
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100146 default: ''
147 - choice:
148 name: 'FASTMODEL_TEST'
149 choices:
150 - Disable
151 - Enable
152 description: "Set to enable Fastmodel testing of artefacts"
153 - choice:
154 name: 'LAVA_TEST'
155 choices:
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100156 - Disable
Galanakis, Minos7b321792020-01-09 11:01:02 +0000157 - Enable
Galanakis, Minosb96c6d42019-06-20 10:41:28 +0100158 description: "Set to enable LAVA testing of artefacts"
159 - choice:
160 name: 'BUILD_DOCS'
161 choices:
162 - Disable
163 - Enable
164 description: "Set to enable Documentation building"
Minos Galanakisda546842018-10-10 17:03:36 +0100165 dsl:
166 !include-raw:
167 - ./pipelines/tf-m-build-test-review