blob: c82ca88b5297de7616f8537195f08196684dc6be [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'
Xinyu Zhang82a366c2022-04-11 18:18:59 +080024 default: "coverage_profile_s coverage_profile_m coverage_profile_l \
25 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:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080068 name: 'LAVA_URL'
69 default: 'https://tf.validation.linaro.org'
70 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080071 name: 'CODE_COVERAGE_EN'
72 default: 'TRUE'
Dean Birchc4d4d672020-08-12 10:38:58 +010073 - string:
Xinyu Zhang1a4d1102022-10-18 17:39:01 +080074 name: 'SQUAD_CONFIGURATIONS'
75 default: 'disabled'
76 description: 'Send metrics of reference configurations to a SQUAD Dashboard'
77 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +010078 name: 'LAVA_CREDENTIALS'
79 default: 'LAVA_CREDENTIALS'
80 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050081 - string:
82 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080083 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050084 description: |
85 Specify which MCUboot version to use
86 refs/heads/master : Pick up latest master
87 refs/tags/<TAG_NAME> : Pick up a tagged version
88 - string:
89 name: 'MCUBOOT_URL'
90 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
91 - string:
92 name: 'TFM_TESTS_URL'
93 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
94 - string:
95 name: 'TFM_TESTS_REFSPEC'
96 default: 'refs/heads/master'
97 - string:
98 name: 'PSA_ARCH_TESTS_URL'
99 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
100 - string:
101 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +0800102 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500103 - string:
104 name: SHARE_FOLDER
105 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
106 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300107 - string:
108 name: 'DEVICE_FILTER'
Paul Sokolovsky60c972a2022-04-30 18:13:14 +0300109 default: '--fvp-only'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300110 description: |
111 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 +0800112 wrappers:
113 - timestamps
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800114 pipeline-scm:
115 scm:
116 - git:
117 url: '$CI_SCRIPTS_REPO'
118 branches:
119 - '$CI_SCRIPTS_BRANCH'
120 credentials-id: GIT_SSH_KEY
121 wipe-workspace: false
122 script-path: jenkins/ci.jpl