blob: e791e4e7d18e4d36cc4b34e51003f3ea9708099e [file] [log] [blame]
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +03001#-------------------------------------------------------------------------------
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +07002# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +03003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
Paul Sokolovsky47d4b402022-12-09 19:37:27 +03009 name: pfalcon-tf-m-code-coverage
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070010 description: 'Build to generate code coverage data.'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030011 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
17 days-to-keep: 90
18 num-to-keep: 45
19# triggers:
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070020# - timed: 'H 19 * * 6'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030021 parameters:
22 - string:
23 name: 'FILTER_GROUP'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070024 default: "coverage_profile_s coverage_profile_m coverage_profile_l \
25 coverage_ipc_backend coverage_nsce coverage_mmio coverage_fp"
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030026 description: |
27 Filter to a group of configurations as recognised by configs.py
28 - string:
29 name: 'CODE_REPO'
Paul Sokolovsky4c93e1d2024-04-30 01:12:02 +070030 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030031 - string:
32 name: 'CI_SCRIPTS_REPO'
Paul Sokolovsky6dbc2072022-12-01 21:42:50 +030033 default: 'https://github.com/pfalcon/tf-m-ci-scripts'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030034 - string:
35 name: 'CI_SCRIPTS_BRANCH'
Paul Sokolovsky6dbc2072022-12-01 21:42:50 +030036 default: 'pfalcon'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030037 - string:
38 name: 'GERRIT_REFSPEC'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070039 default: 'refs/heads/main'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030040 description: |
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070041 For use when triggering with specified tag or master 'refs/heads/main' or 'refs/tags/TF-Mv1.0'.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030042 - string:
43 name: 'GERRIT_BRANCH'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070044 default: 'main'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030045 description: |
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070046 TF-M branch.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030047 - string:
48 name: 'GERRIT_HOST'
49 description: |
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070050 No need to change.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030051 - string:
52 name: 'GERRIT_CHANGE_NUMBER'
53 description: |
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070054 No need to change.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030055 - string:
56 name: 'GERRIT_PATCHSET_REVISION'
57 description: |
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070058 No need to change.
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030059 - string:
60 name: 'MBEDTLS_VERSION'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070061 default: ''
62 description: |
63 Specify which MBEDTLS version to use
64 refs/heads/<branch_name> : Pick up latest HEAD on branch
65 TAG_NAME : Pick up a tagged version
66 full commit hash : Pick up a specific commit
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030067 - string:
68 name: 'MBEDTLS_URL'
69 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
70 - string:
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010071 name: 'QCBOR_URL'
72 default: 'https://github.com/laurencelundblade/QCBOR.git'
73 - string:
74 name: 'QCBOR_VERSION'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070075 default: ''
76 description: |
77 Specify which QCBOR version to use
78 refs/heads/<branch_name> : Pick up latest HEAD on branch
79 TAG_NAME : Pick up a tagged version
80 full commit hash : Pick up a specific commit
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010081 - string:
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030082 name: 'LAVA_URL'
83 default: 'https://tf.validation.linaro.org'
84 - string:
85 name: 'CODE_COVERAGE_EN'
86 default: 'TRUE'
87 - string:
Paul Sokolovskyd5c4d5c2022-12-27 23:42:57 +030088 name: 'LCOV_FLAGS'
89 default: '--quiet'
90 description: |
91 Additional flags to pass to lcov
92 - string:
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030093 name: 'LAVA_CREDENTIALS'
94 default: 'LAVA_CREDENTIALS'
95 description: "Name of Jenkins credential for authentication with LAVA."
96 - string:
97 name: 'MCUBOOT_REFSPEC'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +070098 default: ''
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +030099 description: |
100 Specify which MCUboot version to use
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +0700101 refs/heads/<branch_name> : Pick up latest HEAD on branch
102 TAG_NAME : Pick up a tagged version
103 full commit hash : Pick up a specific commit
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300104 - string:
105 name: 'MCUBOOT_URL'
106 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
107 - string:
108 name: 'TFM_TESTS_URL'
109 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
110 - string:
111 name: 'TFM_TESTS_REFSPEC'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +0700112 default: ''
113 description: |
114 Specify which tf-m-tests version to use
115 refs/heads/<branch_name> : Pick up latest HEAD on branch
116 TAG_NAME : Pick up a tagged version
117 full commit hash : Pick up a specific commit
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300118 - string:
119 name: 'PSA_ARCH_TESTS_URL'
120 default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
121 - string:
122 name: 'PSA_ARCH_TESTS_VERSION'
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +0700123 default: ''
124 description: |
125 Specify which psa-arch-tests version to use
126 refs/heads/<branch_name> : Pick up latest HEAD on branch
127 TAG_NAME : Pick up a tagged version
128 full commit hash : Pick up a specific commit
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300129 - string:
Paul Sokolovskye2b1cc92022-12-12 20:37:03 +0300130 name: 'EMAIL_NOTIFICATION'
131 default: 'paul.sokolovsky@linaro.org'
132 - string:
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300133 name: SHARE_FOLDER
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +0700134 default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300135 description: 'Folder containing shared repositories for downstream pipeline jobs'
136 - string:
137 name: 'DEVICE_FILTER'
138 default: '--fvp-only'
139 description: |
140 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Paul Sokolovsky06ddc1d2024-04-29 14:43:20 +0700141 - string:
142 name: USE_TUXSUITE_FVP
143 default: 1
144 description: |
145 Whether to submit FVP tests via TuxSuite (instead of LAVA)
Paul Sokolovsky1da9ff82022-12-01 20:27:45 +0300146 wrappers:
147 - timestamps
148 pipeline-scm:
149 scm:
150 - git:
151 url: '$CI_SCRIPTS_REPO'
152 branches:
153 - '$CI_SCRIPTS_BRANCH'
154 credentials-id: GIT_SSH_KEY
155 wipe-workspace: false
156 script-path: jenkins/ci.jpl