blob: 67727ff709dc783e1891d0061585465476f843e5 [file] [log] [blame]
Karl Zhang637695a2021-01-08 18:33:30 +08001#-------------------------------------------------------------------------------
Xinyu Zhang44a110c2023-01-30 10:50:10 +01002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Karl Zhang637695a2021-01-08 18:33:30 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
Xinyu Zhang22a54542022-12-07 14:12:43 +08009 name: tf-m-code-coverage
10 description: 'Build to generate code coverage data.'
Karl Zhang637695a2021-01-08 18:33:30 +080011 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +030017 days-to-keep: 90
18 num-to-keep: 45
Karl Zhang637695a2021-01-08 18:33:30 +080019# triggers:
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +030020# - timed: 'H 21 * * 6'
Karl Zhang637695a2021-01-08 18:33:30 +080021 parameters:
22 - string:
23 name: 'FILTER_GROUP'
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +030024 default: "coverage_profile_s coverage_profile_m coverage_profile_m_arotless \
25 coverage_profile_l coverage_ipc_backend coverage_nsce coverage_mmio coverage_fp"
Karl Zhang637695a2021-01-08 18:33:30 +080026 description: |
27 Filter to a group of configurations as recognised by configs.py
28 - string:
29 name: 'CODE_REPO'
Paul Sokolovsky0f91a902022-04-26 22:22:09 +030030 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
Karl Zhang637695a2021-01-08 18:33:30 +080031 description: |
32 Change to https://review.trustedfirmware.org/TF-M/trusted-firmware-m use when triggering with unmerged Gerrit changes.
33 - string:
34 name: 'CI_SCRIPTS_REPO'
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +030035 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Karl Zhang637695a2021-01-08 18:33:30 +080036 - string:
37 name: 'CI_SCRIPTS_BRANCH'
38 default: 'master'
39 - string:
40 name: 'GERRIT_REFSPEC'
41 default: 'refs/heads/master'
42 description: |
43 For use when triggering with specified tag or master 'refs/heads/master' or 'refs/tags/TF-Mv1.0'.
44 - string:
45 name: 'GERRIT_BRANCH'
46 default: 'master'
47 description: |
48 For use when triggering with unmerged Gerrit changes.
49 - string:
50 name: 'GERRIT_HOST'
51 description: |
52 For use when triggering with unmerged Gerrit changes.
53 - string:
54 name: 'GERRIT_CHANGE_NUMBER'
55 description: |
56 For use when triggering with unmerged Gerrit changes.
57 - string:
58 name: 'GERRIT_PATCHSET_REVISION'
59 description: |
60 For use when triggering with unmerged Gerrit changes.
61 - string:
62 name: 'MBEDTLS_VERSION'
Xinyu Zhang44a110c2023-01-30 10:50:10 +010063 default: 'mbedtls-3.2.1'
Karl Zhang637695a2021-01-08 18:33:30 +080064 - string:
65 name: 'MBEDTLS_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
67 - string:
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010068 name: 'QCBOR_URL'
69 default: 'https://github.com/laurencelundblade/QCBOR.git'
70 - string:
71 name: 'QCBOR_VERSION'
Xinyu Zhang8ca48652023-03-20 14:34:34 +080072 default: '92d3f89030baff4af7be8396c563e6c8ef263622'
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010073 - string:
Karl Zhang637695a2021-01-08 18:33:30 +080074 name: 'LAVA_URL'
75 default: 'https://tf.validation.linaro.org'
76 - string:
77 name: 'CODE_COVERAGE_EN'
78 default: 'TRUE'
79 - string:
Xinyu Zhang9c920612022-10-18 18:22:41 +080080 name: 'SQUAD_CONFIGURATIONS'
81 default: 'disabled'
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +030082 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
Xinyu Zhang9c920612022-10-18 18:22:41 +080083 - string:
Karl Zhang637695a2021-01-08 18:33:30 +080084 name: 'LAVA_CREDENTIALS'
85 default: 'LAVA_CREDENTIALS'
86 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050087 - string:
88 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang8ca48652023-03-20 14:34:34 +080089 default: '9e8eddcecba931f99297765779f8b130d808a9a3'
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050090 description: |
91 Specify which MCUboot version to use
92 refs/heads/master : Pick up latest master
93 refs/tags/<TAG_NAME> : Pick up a tagged version
94 - string:
95 name: 'MCUBOOT_URL'
96 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
97 - string:
98 name: 'TFM_TESTS_URL'
99 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
100 - string:
101 name: 'TFM_TESTS_REFSPEC'
102 default: 'refs/heads/master'
103 - string:
104 name: 'PSA_ARCH_TESTS_URL'
105 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
106 - string:
107 name: 'PSA_ARCH_TESTS_VERSION'
Summer61e04a32022-11-15 11:24:52 +0800108 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Leonardo Sandoval3208aea2021-09-17 14:05:27 -0500109 - string:
110 name: SHARE_FOLDER
111 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
112 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskyebbce5d2022-12-01 20:12:26 +0300113 - string:
114 name: 'DEVICE_FILTER'
115 default: '--fvp-only'
116 description: |
117 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang33881cc2021-05-21 14:04:11 +0800118 wrappers:
119 - timestamps
Karl Zhang637695a2021-01-08 18:33:30 +0800120 pipeline-scm:
121 scm:
122 - git:
123 url: '$CI_SCRIPTS_REPO'
124 branches:
125 - '$CI_SCRIPTS_BRANCH'
126 credentials-id: GIT_SSH_KEY
127 wipe-workspace: false
128 script-path: jenkins/ci.jpl