blob: 2f2ee043d62437329db82f1f05010889567ca665 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
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
19 - authorization:
Riku Voipiod4ea5342020-09-04 16:00:02 +030020 anonymous:
21 - job-read
22 - job-extended-read
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 suihkulokki:
24 - job-read
25 - job-extended-read
26 - job-build
27 - job-cancel
Riku Voipio2a9d3232020-09-08 11:42:48 +030028 - run-update
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 minosgalanakis:
30 - job-read
31 - job-extended-read
32 - job-build
33 - job-cancel
Riku Voipio2a9d3232020-09-08 11:42:48 +030034 - run-update
Dean Birche4cbc7c2020-01-20 10:40:21 +000035 bhcopeland:
36 - job-read
37 - job-extended-read
38 - job-build
39 - job-cancel
Riku Voipio2a9d3232020-09-08 11:42:48 +030040 - run-update
41 omnium21:
42 - job-read
43 - job-extended-read
44 - job-build
45 - job-cancel
46 - run-update
47 lsandov1:
48 - job-read
49 - job-extended-read
50 - job-build
51 - job-cancel
52 - run-update
Xinyu Zhang043d5aa2020-10-15 18:20:17 +080053 karl-zh:
54 - job-read
55 - job-extended-read
56 - job-build
57 - job-cancel
58 xinyu-tfm:
59 - job-read
60 - job-extended-read
61 - job-build
62 - job-cancel
Dean Bircha818da42020-05-26 14:46:21 +010063 - throttle:
64 max-total: 5
65 option: project
Dean Birche4cbc7c2020-01-20 10:40:21 +000066 # Will be triggered from tf-m-static-checks or can be triggered manually
67 #triggers: []
68 parameters:
69 - string:
70 name: 'FILTER_GROUP'
71 # TODO once available, use a group that filters to configurations we want
Karl Zhangd46341f2020-08-25 09:43:32 +080072 default: 'pp_test_gnu pp_OTP_gnu pp_psoc64_gnu'
Dean Birche4cbc7c2020-01-20 10:40:21 +000073 description: |
74 Filter to a group of configurations as recognised by configs.py
75 - string:
76 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010077 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000078 - string:
79 name: 'CI_SCRIPTS_REPO'
80 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
81 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010082 name: 'CI_SCRIPTS_BRANCH'
83 default: 'master'
84 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 name: 'GERRIT_REFSPEC'
86 default: 'refs/heads/master'
87 description: |
88 For use when triggering with unmerged Gerrit changes.
89 - string:
90 name: 'GERRIT_BRANCH'
91 default: 'master'
92 description: |
93 For use when triggering with unmerged Gerrit changes.
94 - string:
95 name: 'GERRIT_HOST'
96 description: |
97 For use when triggering with unmerged Gerrit changes.
98 - string:
99 name: 'GERRIT_CHANGE_NUMBER'
100 description: |
101 For use when triggering with unmerged Gerrit changes.
102 - string:
103 name: 'GERRIT_PATCHSET_REVISION'
104 description: |
105 For use when triggering with unmerged Gerrit changes.
106 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800107 name: 'MBEDTLS_VERSION'
Summer Qina400be82020-10-28 15:00:00 +0800108 default: 'mbedtls-2.24.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +0800109 - string:
110 name: 'MBEDTLS_URL'
111 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
112 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +0000113 name: 'LAVA_URL'
114 default: 'https://tf.validation.linaro.org'
115 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +0800116 name: 'CODE_COVERAGE_EN'
117 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +0100118 - string:
119 name: 'LAVA_CREDENTIALS'
120 default: 'LAVA_CREDENTIALS'
121 description: "Name of Jenkins credential for authentication with LAVA."
Dean Birche4cbc7c2020-01-20 10:40:21 +0000122 pipeline-scm:
123 scm:
124 - git:
125 url: '$CI_SCRIPTS_REPO'
126 branches:
127 - '$CI_SCRIPTS_BRANCH'
128 credentials-id: GIT_SSH_KEY
129 wipe-workspace: false
130 script-path: jenkins/ci.jpl