blob: 48208a138f4fd381d4c05a67902afd13464034d6 [file] [log] [blame]
Karl Zhang93a3c4c2020-07-10 12:40:34 +08001#-------------------------------------------------------------------------------
Summer Qin7632b812022-01-05 17:33:35 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Karl Zhang93a3c4c2020-07-10 12:40:34 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-nightly-code-coverage
10 description: 'Build that triggers nightly to generate code coverage data.'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
Paul Sokolovsky24884332022-08-08 16:38:25 +030017 days-to-keep: 90
Karl Zhang93a3c4c2020-07-10 12:40:34 +080018 num-to-keep: 45
Paul Sokolovsky33aa26c2022-07-22 12:10:06 +030019 triggers:
20 - timed: 'H 21 * * 6'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080021 parameters:
22 - string:
23 name: 'FILTER_GROUP'
David Hue9b0dd72022-11-17 11:12:26 +080024 default: "coverage_profile_s coverage_profile_m coverage_profile_m_arotless \
Xinyu Zhangea289122022-11-21 17:56:38 +080025 coverage_profile_l coverage_ipc_backend coverage_nsce coverage_mmio coverage_fp"
Karl Zhang93a3c4c2020-07-10 12:40:34 +080026 description: |
27 Filter to a group of configurations as recognised by configs.py
28 - string:
29 name: 'CODE_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080030 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
31 description: |
32 Change to https://review.trustedfirmware.org/TF-M/trusted-firmware-m use when triggering with unmerged Gerrit changes.
Karl Zhang93a3c4c2020-07-10 12:40:34 +080033 - string:
34 name: 'CI_SCRIPTS_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080035 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080036 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010037 name: 'CI_SCRIPTS_BRANCH'
38 default: 'master'
39 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080040 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:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080062 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010063 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080064 - string:
65 name: 'MBEDTLS_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
67 - string:
Xinyu Zhangb06443a2022-11-23 17:50:21 +080068 name: 'QCBOR_URL'
69 default: 'https://github.com/laurencelundblade/QCBOR.git'
70 - string:
71 name: 'QCBOR_VERSION'
72 default: 'b0e7033268e88c9f27146fa9a1415ef4c19ebaff'
73 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080074 name: 'LAVA_URL'
75 default: 'https://tf.validation.linaro.org'
76 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080077 name: 'CODE_COVERAGE_EN'
78 default: 'TRUE'
Dean Birchc4d4d672020-08-12 10:38:58 +010079 - string:
Xinyu Zhang1a4d1102022-10-18 17:39:01 +080080 name: 'SQUAD_CONFIGURATIONS'
81 default: 'disabled'
82 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
83 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +010084 name: 'LAVA_CREDENTIALS'
85 default: 'LAVA_CREDENTIALS'
86 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050087 - string:
88 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080089 default: 'v1.9.0'
Leonardo Sandoval4a024212021-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'
Summer8858e3e2022-11-15 10:40:04 +0800108 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Leonardo Sandoval4a024212021-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 Sokolovskycd6c0362022-04-28 21:00:32 +0300113 - string:
114 name: 'DEVICE_FILTER'
Paul Sokolovsky60c972a2022-04-30 18:13:14 +0300115 default: '--fvp-only'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300116 description: |
117 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 +0800118 wrappers:
119 - timestamps
Karl Zhang93a3c4c2020-07-10 12:40:34 +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