Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
David Vincze | 16a9dac | 2023-01-06 15:16:47 +0100 | [diff] [blame] | 2 | # Copyright (c) 2020-2023, Arm Limited. All rights reserved. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
Xinyu Zhang | 6788059 | 2022-12-07 14:05:27 +0800 | [diff] [blame] | 9 | name: tf-m-code-coverage |
| 10 | description: 'Build to generate code coverage data.' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 11 | project-type: pipeline |
| 12 | disabled: false |
| 13 | sandbox: true |
| 14 | concurrent: true |
| 15 | properties: |
| 16 | - build-discarder: |
Paul Sokolovsky | 2488433 | 2022-08-08 16:38:25 +0300 | [diff] [blame] | 17 | days-to-keep: 90 |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 18 | num-to-keep: 45 |
Paul Sokolovsky | 33aa26c | 2022-07-22 12:10:06 +0300 | [diff] [blame] | 19 | triggers: |
Paul Sokolovsky | 5f10f73 | 2023-10-17 10:48:56 +0300 | [diff] [blame] | 20 | - timed: 'H 19 * * 6' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 21 | parameters: |
| 22 | - string: |
| 23 | name: 'FILTER_GROUP' |
Xinyu Zhang | e0f0252 | 2023-03-27 10:26:26 +0800 | [diff] [blame] | 24 | default: "coverage_profile_s coverage_profile_m coverage_profile_l \ |
| 25 | coverage_ipc_backend coverage_nsce coverage_mmio coverage_fp" |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 26 | description: | |
| 27 | Filter to a group of configurations as recognised by configs.py |
| 28 | - string: |
| 29 | name: 'CODE_REPO' |
Karl Zhang | a7cc3c4 | 2021-01-08 17:17:48 +0800 | [diff] [blame] | 30 | default: 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 31 | - string: |
| 32 | name: 'CI_SCRIPTS_REPO' |
Karl Zhang | a7cc3c4 | 2021-01-08 17:17:48 +0800 | [diff] [blame] | 33 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 34 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 35 | name: 'CI_SCRIPTS_BRANCH' |
| 36 | default: 'master' |
| 37 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 38 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 39 | default: 'refs/heads/main' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 40 | description: | |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 41 | For use when triggering with specified tag or master 'refs/heads/main' or 'refs/tags/TF-Mv1.0'. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 42 | - string: |
| 43 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 44 | default: 'main' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 45 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 46 | TF-M branch. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 47 | - string: |
| 48 | name: 'GERRIT_HOST' |
| 49 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 50 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 51 | - string: |
| 52 | name: 'GERRIT_CHANGE_NUMBER' |
| 53 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 54 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 55 | - string: |
| 56 | name: 'GERRIT_PATCHSET_REVISION' |
| 57 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 58 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 59 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 60 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 61 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 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 |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 67 | - string: |
| 68 | name: 'MBEDTLS_URL' |
| 69 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 70 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 71 | name: 'QCBOR_URL' |
| 72 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 73 | - string: |
| 74 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 75 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 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 Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 81 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 82 | name: 'LAVA_URL' |
| 83 | default: 'https://tf.validation.linaro.org' |
| 84 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 85 | name: 'CODE_COVERAGE_EN' |
| 86 | default: 'TRUE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 87 | - string: |
Paul Sokolovsky | bd1327d | 2022-12-28 00:24:13 +0300 | [diff] [blame] | 88 | name: 'LCOV_FLAGS' |
| 89 | default: '--quiet' |
| 90 | description: | |
| 91 | Additional flags to pass to lcov |
| 92 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 93 | name: 'LAVA_CREDENTIALS' |
| 94 | default: 'LAVA_CREDENTIALS' |
| 95 | description: "Name of Jenkins credential for authentication with LAVA." |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 96 | - string: |
| 97 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 98 | default: '' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 99 | description: | |
| 100 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 101 | 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 |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 104 | - 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' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 112 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 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 |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 118 | - 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' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 123 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 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 |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 129 | - string: |
Paul Sokolovsky | b86aa39 | 2022-12-12 19:52:18 +0300 | [diff] [blame] | 130 | name: 'EMAIL_NOTIFICATION' |
Matthew Dalzell | 839505e | 2024-05-21 15:20:30 +0100 | [diff] [blame] | 131 | default: 'matthew.dalzell@arm.com, paul.sokolovsky@linaro.org' |
Paul Sokolovsky | b86aa39 | 2022-12-12 19:52:18 +0300 | [diff] [blame] | 132 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 133 | name: SHARE_FOLDER |
| 134 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 135 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 136 | - string: |
| 137 | name: 'DEVICE_FILTER' |
Paul Sokolovsky | 60c972a | 2022-04-30 18:13:14 +0300 | [diff] [blame] | 138 | default: '--fvp-only' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 139 | description: | |
| 140 | Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only) |
Paul Sokolovsky | ff6152a | 2024-03-30 00:01:21 +0700 | [diff] [blame] | 141 | - string: |
| 142 | name: USE_TUXSUITE_FVP |
Paul Sokolovsky | 592eee2 | 2024-04-20 11:48:24 +0700 | [diff] [blame] | 143 | default: 1 |
Paul Sokolovsky | ff6152a | 2024-03-30 00:01:21 +0700 | [diff] [blame] | 144 | description: | |
| 145 | Whether to submit FVP tests via TuxSuite (instead of LAVA) |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 146 | wrappers: |
| 147 | - timestamps |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 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 |