blob: d487be5972d8dd5f58a0867509af09cc6298591d [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 Zhang72a9af42021-10-12 17:12:18 +080030 default: 'pp_test pp_OTP pp_psoc64 corstone1000'
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'
Riku Voipio02c86792021-09-02 13:42:14 +030038 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000039 - 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:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030071 name: 'TFM_TESTS_URL'
72 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
73 - string:
74 name: 'TFM_TESTS_REFSPEC'
75 default: 'refs/heads/master'
76 - string:
77 name: 'PSA_ARCH_TESTS_URL'
78 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
79 - string:
80 name: 'PSA_ARCH_TESTS_VERSION'
81 default: 'v21.10_API1.3_ADAC_ALPHA-1'
82 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000083 name: 'LAVA_URL'
84 default: 'https://tf.validation.linaro.org'
85 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +080086 name: 'CODE_COVERAGE_EN'
87 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +010088 - string:
89 name: 'LAVA_CREDENTIALS'
90 default: 'LAVA_CREDENTIALS'
91 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050092 - string:
93 name: SHARE_FOLDER
94 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
95 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080096 wrappers:
97 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000098 pipeline-scm:
99 scm:
100 - git:
101 url: '$CI_SCRIPTS_REPO'
102 branches:
103 - '$CI_SCRIPTS_BRANCH'
104 credentials-id: GIT_SSH_KEY
105 wipe-workspace: false
106 script-path: jenkins/ci.jpl