blob: 2fed34a370435cc8b8bb283fb907dac83542c988 [file] [log] [blame]
Karl Zhang637695a2021-01-08 18:33:30 +08001#-------------------------------------------------------------------------------
Xinyu Zhang1c34da82022-01-14 14:59:54 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Karl Zhang637695a2021-01-08 18:33:30 +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:
Xinyu Zhang7d4feea2022-09-14 13:37:23 +080017 days-to-keep: 5
18 num-to-keep: 15
Paul Sokolovsky0f91a902022-04-26 22:22:09 +030019 - authorization:
20 !include: authorization.yaml.inc
Karl Zhang637695a2021-01-08 18:33:30 +080021# triggers:
22# - timed: 'H 21 * * *'
23 parameters:
24 - string:
25 name: 'FILTER_GROUP'
Xinyu Zhangc66f4e42022-09-14 12:13:48 +080026 default: "coverage_profile_s coverage_profile_m coverage_profile_l \
27 coverage_nsce coverage_mmio coverage_fp"
Karl Zhang637695a2021-01-08 18:33:30 +080028 description: |
29 Filter to a group of configurations as recognised by configs.py
30 - string:
31 name: 'CODE_REPO'
Paul Sokolovsky0f91a902022-04-26 22:22:09 +030032 default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m'
Karl Zhang637695a2021-01-08 18:33:30 +080033 description: |
34 Change to https://review.trustedfirmware.org/TF-M/trusted-firmware-m use when triggering with unmerged Gerrit changes.
35 - string:
36 name: 'CI_SCRIPTS_REPO'
Xinyu Zhangc66f4e42022-09-14 12:13:48 +080037 default: 'https://review.trustedfirmware.org/next/ci/tf-m-ci-scripts'
Karl Zhang637695a2021-01-08 18:33:30 +080038 - string:
39 name: 'CI_SCRIPTS_BRANCH'
40 default: 'master'
41 - string:
42 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:
64 name: 'MBEDTLS_VERSION'
Xinyu Zhang5a640b82022-07-20 11:36:52 +080065 default: 'mbedtls-3.2.1'
Karl Zhang637695a2021-01-08 18:33:30 +080066 - string:
67 name: 'MBEDTLS_URL'
68 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
69 - string:
70 name: 'LAVA_URL'
71 default: 'https://tf.validation.linaro.org'
72 - string:
73 name: 'CODE_COVERAGE_EN'
74 default: 'TRUE'
75 - string:
Xinyu Zhang9c920612022-10-18 18:22:41 +080076 name: 'SQUAD_CONFIGURATIONS'
77 default: 'disabled'
78 description: 'Reference configurations whose metrics will be sent to a SQUAD Dashboard'
79 - string:
Karl Zhang637695a2021-01-08 18:33:30 +080080 name: 'LAVA_CREDENTIALS'
81 default: 'LAVA_CREDENTIALS'
82 description: "Name of Jenkins credential for authentication with LAVA."
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050083 - string:
84 name: 'MCUBOOT_REFSPEC'
Sherry Zhanga66975c2022-03-03 11:04:07 +080085 default: 'v1.9.0'
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050086 description: |
87 Specify which MCUboot version to use
88 refs/heads/master : Pick up latest master
89 refs/tags/<TAG_NAME> : Pick up a tagged version
90 - string:
91 name: 'MCUBOOT_URL'
92 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
93 - string:
94 name: 'TFM_TESTS_URL'
95 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
96 - string:
97 name: 'TFM_TESTS_REFSPEC'
98 default: 'refs/heads/master'
99 - string:
100 name: 'PSA_ARCH_TESTS_URL'
101 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
102 - string:
103 name: 'PSA_ARCH_TESTS_VERSION'
Summer61e04a32022-11-15 11:24:52 +0800104 default: 'cf8bd7191219df9bdef387abcd750f0709283f98'
Leonardo Sandoval3208aea2021-09-17 14:05:27 -0500105 - string:
106 name: SHARE_FOLDER
107 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
108 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang33881cc2021-05-21 14:04:11 +0800109 wrappers:
110 - timestamps
Karl Zhang637695a2021-01-08 18:33:30 +0800111 pipeline-scm:
112 scm:
113 - git:
114 url: '$CI_SCRIPTS_REPO'
115 branches:
116 - '$CI_SCRIPTS_BRANCH'
117 credentials-id: GIT_SSH_KEY
118 wipe-workspace: false
119 script-path: jenkins/ci.jpl