blob: 459b05dc94ea431ed59a0f63d8fe3b6b6e3d4843 [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:
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 Zhang5d0a1722020-12-04 15:01:29 +080030 default: 'pp_test pp_OTP pp_psoc64'
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'
Summer Qina400be82020-10-28 15:00:00 +080066 default: 'mbedtls-2.24.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."
Dean Birche4cbc7c2020-01-20 10:40:21 +000080 pipeline-scm:
81 scm:
82 - git:
83 url: '$CI_SCRIPTS_REPO'
84 branches:
85 - '$CI_SCRIPTS_BRANCH'
86 credentials-id: GIT_SSH_KEY
87 wipe-workspace: false
88 script-path: jenkins/ci.jpl