blob: d953fe85185069999218839fc65d2136d399bd32 [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 Zhang0d185032021-06-17 14:18:12 +080026 default: 'coverage_an519 coverage_an521'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080027 description: |
28 Filter to a group of configurations as recognised by configs.py
29 - string:
30 name: 'CODE_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080031 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
32 description: |
33 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 +080034 - string:
35 name: 'CI_SCRIPTS_REPO'
Karl Zhanga7cc3c42021-01-08 17:17:48 +080036 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Karl Zhang93a3c4c2020-07-10 12:40:34 +080037 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010038 name: 'CI_SCRIPTS_BRANCH'
39 default: 'master'
40 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080041 name: 'GERRIT_REFSPEC'
42 default: 'refs/heads/master'
43 description: |
44 For use when triggering with specified tag or master 'refs/heads/master' or 'refs/tags/TF-Mv1.0'.
45 - string:
46 name: 'GERRIT_BRANCH'
47 default: 'master'
48 description: |
49 For use when triggering with unmerged Gerrit changes.
50 - string:
51 name: 'GERRIT_HOST'
52 description: |
53 For use when triggering with unmerged Gerrit changes.
54 - string:
55 name: 'GERRIT_CHANGE_NUMBER'
56 description: |
57 For use when triggering with unmerged Gerrit changes.
58 - string:
59 name: 'GERRIT_PATCHSET_REVISION'
60 description: |
61 For use when triggering with unmerged Gerrit changes.
62 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080063 name: 'MBEDTLS_VERSION'
Summer Qin7632b812022-01-05 17:33:35 +080064 default: 'mbedtls-3.1.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080065 - string:
66 name: 'MBEDTLS_URL'
67 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
68 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080069 name: 'LAVA_URL'
70 default: 'https://tf.validation.linaro.org'
71 - string:
Karl Zhang93a3c4c2020-07-10 12:40:34 +080072 name: 'CODE_COVERAGE_EN'
73 default: 'TRUE'
Dean Birchc4d4d672020-08-12 10:38:58 +010074 - string:
75 name: 'LAVA_CREDENTIALS'
76 default: 'LAVA_CREDENTIALS'
77 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval4a024212021-09-17 14:05:27 -050078 - string:
79 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080080 default: 'v1.9.0'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050081 description: |
82 Specify which MCUboot version to use
83 refs/heads/master : Pick up latest master
84 refs/tags/<TAG_NAME> : Pick up a tagged version
85 - string:
86 name: 'MCUBOOT_URL'
87 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
88 - string:
89 name: 'TFM_TESTS_URL'
90 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
91 - string:
92 name: 'TFM_TESTS_REFSPEC'
93 default: 'refs/heads/master'
94 - string:
95 name: 'PSA_ARCH_TESTS_URL'
96 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
97 - string:
98 name: 'PSA_ARCH_TESTS_VERSION'
Summer Qin9da600e2022-04-06 17:48:13 +080099 default: 'f7e8495dede62196a7fdd88470c58cf672525238'
Leonardo Sandoval4a024212021-09-17 14:05:27 -0500100 - string:
101 name: SHARE_FOLDER
102 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
103 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800104 wrappers:
105 - timestamps
Karl Zhang93a3c4c2020-07-10 12:40:34 +0800106 pipeline-scm:
107 scm:
108 - git:
109 url: '$CI_SCRIPTS_REPO'
110 branches:
111 - '$CI_SCRIPTS_BRANCH'
112 credentials-id: GIT_SSH_KEY
113 wipe-workspace: false
114 script-path: jenkins/ci.jpl