blob: 76ac14462a78c5c8b1342970e3d21640909ed784 [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:
20 suihkulokki:
21 - job-read
22 - job-extended-read
23 - job-build
24 - job-cancel
25 minosgalanakis:
26 - 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
Dean Bircha818da42020-05-26 14:46:21 +010035 - throttle:
36 max-total: 5
37 option: project
Dean Birche4cbc7c2020-01-20 10:40:21 +000038 # Will be triggered from tf-m-static-checks or can be triggered manually
39 #triggers: []
40 parameters:
41 - string:
42 name: 'FILTER_GROUP'
43 # TODO once available, use a group that filters to configurations we want
Karl Zhang44db3cc2020-06-22 15:20:20 +080044 default: 'pp_test_gnu pp_OTP_gnu pp_PSA_API_gnu pp_psoc64_gnu'
Dean Birche4cbc7c2020-01-20 10:40:21 +000045 description: |
46 Filter to a group of configurations as recognised by configs.py
47 - string:
48 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010049 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000050 - string:
51 name: 'CI_SCRIPTS_REPO'
52 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
53 - string:
54 name: 'GERRIT_REFSPEC'
55 default: 'refs/heads/master'
56 description: |
57 For use when triggering with unmerged Gerrit changes.
58 - string:
59 name: 'GERRIT_BRANCH'
60 default: 'master'
61 description: |
62 For use when triggering with unmerged Gerrit changes.
63 - string:
64 name: 'GERRIT_HOST'
65 description: |
66 For use when triggering with unmerged Gerrit changes.
67 - string:
68 name: 'GERRIT_CHANGE_NUMBER'
69 description: |
70 For use when triggering with unmerged Gerrit changes.
71 - string:
72 name: 'GERRIT_PATCHSET_REVISION'
73 description: |
74 For use when triggering with unmerged Gerrit changes.
75 - string:
76 name: 'MBEDCRYPTO_VERSION'
77 default: 'mbedcrypto-3.0.1'
78 - string:
79 name: 'MBEDCRYPTO_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +080080 default: 'https://git.trustedfirmware.org/mirror/mbed-crypto.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +000081 - string:
82 name: 'CMSIS_VERSION'
83 default: '5.5.0'
84 - string:
85 name: 'LAVA_URL'
86 default: 'https://tf.validation.linaro.org'
87 - string:
88 name: 'CI_SCRIPTS_BRANCH'
89 default: 'master'
Karl Zhang68a81b42020-07-24 18:38:08 +080090 - string:
91 name: 'CODE_COVERAGE_EN'
92 default: 'FALSE'
Dean Birche4cbc7c2020-01-20 10:40:21 +000093 pipeline-scm:
94 scm:
95 - git:
96 url: '$CI_SCRIPTS_REPO'
97 branches:
98 - '$CI_SCRIPTS_BRANCH'
99 credentials-id: GIT_SSH_KEY
100 wipe-workspace: false
101 script-path: jenkins/ci.jpl