blob: 4c98cf2b3f75ad835695296123fa982f6a9cfdcb [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
19 - authorization:
Fathi Boudradb891772021-03-02 14:12:48 +010020 !include: authorization.yaml.inc
Karl Zhanga7cc3c42021-01-08 17:17:48 +080021# triggers:
22# - timed: 'H 21 * * *'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080023 parameters:
24 - string:
25 name: 'FILTER_GROUP'
Xinyu Zhang82a366c2022-04-11 18:18:59 +080026 default: "coverage_profile_s coverage_profile_m coverage_profile_l \
27 coverage_nsce coverage_mmio coverage_fp"
Karl Zhang93a3c4c2020-07-10 12:40:34 +080028 description: |
29 Filter to a group of configurations as recognised by configs.py
30 - string:
31 name: 'CODE_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080032 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
33 description: |
34 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 +080035 - string:
36 name: 'CI_SCRIPTS_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080037 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080038 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010039 name: 'CI_SCRIPTS_BRANCH'
40 default: 'master'
41 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080042 name: 'GERRIT_REFSPEC'
43 default: 'refs/heads/master'
44 description: |
45 For use when triggering with specified tag or master 'refs/heads/master' or 'refs/tags/TF-Mv1.0'.
46 - string:
47 name: 'GERRIT_BRANCH'
48 default: 'master'
49 description: |
50 For use when triggering with unmerged Gerrit changes.
51 - string:
52 name: 'GERRIT_HOST'
53 description: |
54 For use when triggering with unmerged Gerrit changes.
55 - string:
56 name: 'GERRIT_CHANGE_NUMBER'
57 description: |
58 For use when triggering with unmerged Gerrit changes.
59 - string:
60 name: 'GERRIT_PATCHSET_REVISION'
61 description: |
62 For use when triggering with unmerged Gerrit changes.
63 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080064 name: 'MBEDTLS_VERSION'
Summer Qin7632b812022-01-05 17:33:35 +080065 default: 'mbedtls-3.1.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080066 - string:
67 name: 'MBEDTLS_URL'
68 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
69 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080070 name: 'LAVA_URL'
71 default: 'https://tf.validation.linaro.org'
72 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080073 name: 'CODE_COVERAGE_EN'
74 default: 'TRUE'
Dean Birchc4d4d672020-08-12 10:38:58 +010075 - string:
76 name: 'LAVA_CREDENTIALS'
77 default: 'LAVA_CREDENTIALS'
78 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050079 - string:
80 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080081 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050082 description: |
83 Specify which MCUboot version to use
84 refs/heads/master : Pick up latest master
85 refs/tags/<TAG_NAME> : Pick up a tagged version
86 - string:
87 name: 'MCUBOOT_URL'
88 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
89 - string:
90 name: 'TFM_TESTS_URL'
91 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
92 - string:
93 name: 'TFM_TESTS_REFSPEC'
94 default: 'refs/heads/master'
95 - string:
96 name: 'PSA_ARCH_TESTS_URL'
97 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
98 - string:
99 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +0800100 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500101 - string:
102 name: SHARE_FOLDER
103 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
104 description: 'Folder containing shared repositories for downstream pipeline jobs'
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300105 - string:
106 name: 'DEVICE_FILTER'
107 default: ''
108 description: |
109 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 +0800110 wrappers:
111 - timestamps
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800112 pipeline-scm:
113 scm:
114 - git:
115 url: '$CI_SCRIPTS_REPO'
116 branches:
117 - '$CI_SCRIPTS_BRANCH'
118 credentials-id: GIT_SSH_KEY
119 wipe-workspace: false
120 script-path: jenkins/ci.jpl