blob: c6696b3a66217cac73646d75984d27e6485142ad [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
Dean Bircha818da42020-05-26 14:46:21 +010019 - throttle:
20 max-total: 5
21 option: project
Dean Birche4cbc7c2020-01-20 10:40:21 +000022 # Will be triggered from tf-m-static-checks or can be triggered manually
23 #triggers: []
24 parameters:
25 - string:
26 name: 'FILTER_GROUP'
27 # TODO once available, use a group that filters to configurations we want
Xinyu Zhang82a366c2022-04-11 18:18:59 +080028 default: 'pp_test pp_corstone1000'
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 description: |
30 Filter to a group of configurations as recognised by configs.py
31 - string:
32 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010033 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000034 - string:
35 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030036 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000037 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010038 name: 'CI_SCRIPTS_BRANCH'
39 default: 'master'
40 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 name: 'GERRIT_REFSPEC'
42 default: 'refs/heads/master'
43 description: |
44 For use when triggering with unmerged Gerrit changes.
45 - string:
46 name: 'GERRIT_BRANCH'
47 default: 'master'
48 description: |
49 For use when triggering with unmerged Gerrit changes.
50 - string:
51 name: 'GERRIT_HOST'
52 description: |
53 For use when triggering with unmerged Gerrit changes.
54 - string:
55 name: 'GERRIT_CHANGE_NUMBER'
56 description: |
57 For use when triggering with unmerged Gerrit changes.
58 - string:
59 name: 'GERRIT_PATCHSET_REVISION'
60 description: |
61 For use when triggering with unmerged Gerrit changes.
62 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080063 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010064 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080065 - string:
66 name: 'MBEDTLS_URL'
67 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
68 - string:
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030069 name: 'MCUBOOT_URL'
70 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
71 - string:
72 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080073 default: 'v1.9.0'
Paul Sokolovsky1dee8602021-12-27 17:16:53 +030074 description: |
75 Specify which MCUboot version to use
76 refs/heads/master : Pick up latest master
77 refs/tags/<TAG_NAME> : Pick up a tagged version
78 - string:
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030079 name: 'TFM_TESTS_URL'
80 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
81 - string:
82 name: 'TFM_TESTS_REFSPEC'
83 default: 'refs/heads/master'
84 - string:
85 name: 'PSA_ARCH_TESTS_URL'
86 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
87 - string:
88 name: 'PSA_ARCH_TESTS_VERSION'
Summer8858e3e2022-11-15 10:40:04 +080089 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Paul Sokolovskyc0a1f052021-12-27 16:59:55 +030090 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +080091 name: 'QCBOR_URL'
92 default: 'https://github.com/laurencelundblade/QCBOR.git'
93 - string:
94 name: 'QCBOR_VERSION'
95 default: 'b0e7033268e88c9f27146fa9a1415ef4c19ebaff'
96 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000097 name: 'LAVA_URL'
98 default: 'https://tf.validation.linaro.org'
99 - string:
Karl Zhang68a81b42020-07-24 18:38:08 +0800100 name: 'CODE_COVERAGE_EN'
101 default: 'FALSE'
Dean Birchc4d4d672020-08-12 10:38:58 +0100102 - string:
Xinyu Zhang1a4d1102022-10-18 17:39:01 +0800103 name: 'SQUAD_CONFIGURATIONS'
104 default: 'disabled'
105 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
106 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100107 name: 'LAVA_CREDENTIALS'
108 default: 'LAVA_CREDENTIALS'
109 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500110 - string:
111 name: SHARE_FOLDER
112 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
113 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300114 - string:
115 name: 'DEVICE_FILTER'
116 default: ''
117 description: |
118 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800119 wrappers:
120 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000121 pipeline-scm:
122 scm:
123 - git:
124 url: '$CI_SCRIPTS_REPO'
125 branches:
126 - '$CI_SCRIPTS_BRANCH'
127 credentials-id: GIT_SSH_KEY
128 wipe-workspace: false
129 script-path: jenkins/ci.jpl