blob: 539672bef9a361e5828931dbd4e303d8a6c8663d [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Xinyu Zhang59f7fee2021-05-21 14:04:11 +08002# Copyright (c) 2020-2021, 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
19 - authorization:
Fathi Boudradb891772021-03-02 14:12:48 +010020 !include: authorization.yaml.inc
Dean Bircha818da42020-05-26 14:46:21 +010021 - throttle:
22 max-total: 5
23 option: project
Dean Birche4cbc7c2020-01-20 10:40:21 +000024 # Will be triggered from tf-m-static-checks or can be triggered manually
25 #triggers: []
26 parameters:
27 - string:
28 name: 'FILTER_GROUP'
29 # TODO once available, use a group that filters to configurations we want
Xinyu Zhang112cc432021-08-25 16:29:58 +080030 default: 'pp_test pp_OTP pp_psoc64 diphda'
Dean Birche4cbc7c2020-01-20 10:40:21 +000031 description: |
32 Filter to a group of configurations as recognised by configs.py
33 - string:
34 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010035 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000036 - string:
37 name: 'CI_SCRIPTS_REPO'
38 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
39 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010040 name: 'CI_SCRIPTS_BRANCH'
41 default: 'master'
42 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000043 name: 'GERRIT_REFSPEC'
44 default: 'refs/heads/master'
45 description: |
46 For use when triggering with unmerged Gerrit changes.
47 - string:
48 name: 'GERRIT_BRANCH'
49 default: 'master'
50 description: |
51 For use when triggering with unmerged Gerrit changes.
52 - string:
53 name: 'GERRIT_HOST'
54 description: |
55 For use when triggering with unmerged Gerrit changes.
56 - string:
57 name: 'GERRIT_CHANGE_NUMBER'
58 description: |
59 For use when triggering with unmerged Gerrit changes.
60 - string:
61 name: 'GERRIT_PATCHSET_REVISION'
62 description: |
63 For use when triggering with unmerged Gerrit changes.
64 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080065 name: 'MBEDTLS_VERSION'
Xinyu Zhangdbcdf652021-07-12 15:00:46 +080066 default: 'mbedtls-3.0.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080067 - string:
68 name: 'MBEDTLS_URL'
69 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
70 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000071 name: 'LAVA_URL'
72 default: 'https://tf.validation.linaro.org'
73 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +080074 name: 'CODE_COVERAGE_EN'
75 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +010076 - string:
77 name: 'LAVA_CREDENTIALS'
78 default: 'LAVA_CREDENTIALS'
79 description: "Name of Jenkins credential for authentication with LAVA."
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080080 wrappers:
81 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000082 pipeline-scm:
83 scm:
84 - git:
85 url: '$CI_SCRIPTS_REPO'
86 branches:
87 - '$CI_SCRIPTS_BRANCH'
88 credentials-id: GIT_SSH_KEY
89 wipe-workspace: false
90 script-path: jenkins/ci.jpl