blob: 1183afa071a9a3aadccdd55fa7a08b5df602613a [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, 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'
Summer Qin7632b812022-01-05 17:33:35 +080066 default: 'mbedtls-3.1.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 Sokolovsky1dee8602021-12-27 17:16:53 +030071 name: 'MCUBOOT_URL'
72 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
73 - string:
74 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080075 default: 'v1.9.0'
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030076 description: |
77 Specify which MCUboot version to use
78 refs/heads/master : Pick up latest master
79 refs/tags/<TAG_NAME> : Pick up a tagged version
80 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030081 name: 'TFM_TESTS_URL'
82 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
83 - string:
84 name: 'TFM_TESTS_REFSPEC'
85 default: 'refs/heads/master'
86 - string:
87 name: 'PSA_ARCH_TESTS_URL'
88 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
89 - string:
90 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +080091 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030092 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000093 name: 'LAVA_URL'
94 default: 'https://tf.validation.linaro.org'
95 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +080096 name: 'CODE_COVERAGE_EN'
97 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +010098 - string:
99 name: 'LAVA_CREDENTIALS'
100 default: 'LAVA_CREDENTIALS'
101 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500102 - string:
103 name: SHARE_FOLDER
104 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
105 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800106 wrappers:
107 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000108 pipeline-scm:
109 scm:
110 - git:
111 url: '$CI_SCRIPTS_REPO'
112 branches:
113 - '$CI_SCRIPTS_BRANCH'
114 credentials-id: GIT_SSH_KEY
115 wipe-workspace: false
116 script-path: jenkins/ci.jpl