blob: ebe1a2fe4ec68fe68c148fcc4dba74f5b1d6caeb [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:
17 days-to-keep: 15
18 num-to-keep: 45
Karl Zhang93a3c4c2020-07-10 12:40:34 +080019 parameters:
20 - string:
21 name: 'FILTER_GROUP'
Xinyu Zhang82a366c2022-04-11 18:18:59 +080022 default: "coverage_profile_s coverage_profile_m coverage_profile_l \
23 coverage_nsce coverage_mmio coverage_fp"
Karl Zhang93a3c4c2020-07-10 12:40:34 +080024 description: |
25 Filter to a group of configurations as recognised by configs.py
26 - string:
27 name: 'CODE_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080028 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
29 description: |
30 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 +080031 - string:
32 name: 'CI_SCRIPTS_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080033 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080034 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010035 name: 'CI_SCRIPTS_BRANCH'
36 default: 'master'
37 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080038 name: 'GERRIT_REFSPEC'
39 default: 'refs/heads/master'
40 description: |
41 For use when triggering with specified tag or master 'refs/heads/master' or 'refs/tags/TF-Mv1.0'.
42 - string:
43 name: 'GERRIT_BRANCH'
44 default: 'master'
45 description: |
46 For use when triggering with unmerged Gerrit changes.
47 - string:
48 name: 'GERRIT_HOST'
49 description: |
50 For use when triggering with unmerged Gerrit changes.
51 - string:
52 name: 'GERRIT_CHANGE_NUMBER'
53 description: |
54 For use when triggering with unmerged Gerrit changes.
55 - string:
56 name: 'GERRIT_PATCHSET_REVISION'
57 description: |
58 For use when triggering with unmerged Gerrit changes.
59 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080060 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010061 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080062 - string:
63 name: 'MBEDTLS_URL'
64 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
65 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080066 name: 'LAVA_URL'
67 default: 'https://tf.validation.linaro.org'
68 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080069 name: 'CODE_COVERAGE_EN'
70 default: 'TRUE'
Dean Birchc4d4d672020-08-12 10:38:58 +010071 - string:
72 name: 'LAVA_CREDENTIALS'
73 default: 'LAVA_CREDENTIALS'
74 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050075 - string:
76 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080077 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050078 description: |
79 Specify which MCUboot version to use
80 refs/heads/master : Pick up latest master
81 refs/tags/<TAG_NAME> : Pick up a tagged version
82 - string:
83 name: 'MCUBOOT_URL'
84 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
85 - string:
86 name: 'TFM_TESTS_URL'
87 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
88 - string:
89 name: 'TFM_TESTS_REFSPEC'
90 default: 'refs/heads/master'
91 - string:
92 name: 'PSA_ARCH_TESTS_URL'
93 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
94 - string:
95 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +080096 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050097 - string:
98 name: SHARE_FOLDER
99 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
100 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300101 - string:
102 name: 'DEVICE_FILTER'
Paul Sokolovsky60c972a2022-04-30 18:13:14 +0300103 default: '--fvp-only'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300104 description: |
105 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 +0800106 wrappers:
107 - timestamps
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800108 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