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: |
Matthew Dalzell | 69b20c7 | 2024-07-11 10:36:42 +0100 | [diff] [blame] | 20 | - timed: 'H 1 * * 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' |
Paul Sokolovsky | fbb0d13 | 2024-07-12 20:20:03 +0300 | [diff] [blame] | 37 | description: | |
| 38 | Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1' |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 39 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 40 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 41 | default: 'refs/heads/main' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 42 | description: | |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 43 | 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] | 44 | - string: |
| 45 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 46 | default: 'main' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 47 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 48 | TF-M branch. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 49 | - string: |
| 50 | name: 'GERRIT_HOST' |
| 51 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 52 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 53 | - string: |
| 54 | name: 'GERRIT_CHANGE_NUMBER' |
| 55 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 56 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 57 | - string: |
| 58 | name: 'GERRIT_PATCHSET_REVISION' |
| 59 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 60 | No need to change. |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 61 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 62 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 63 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 64 | description: | |
| 65 | Specify which MBEDTLS version to use |
| 66 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 67 | TAG_NAME : Pick up a tagged version |
| 68 | full commit hash : Pick up a specific commit |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 69 | - string: |
| 70 | name: 'MBEDTLS_URL' |
| 71 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 72 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 73 | name: 'QCBOR_URL' |
| 74 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 75 | - string: |
| 76 | name: 'QCBOR_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 77 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 78 | description: | |
| 79 | Specify which QCBOR version to use |
| 80 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 81 | TAG_NAME : Pick up a tagged version |
| 82 | full commit hash : Pick up a specific commit |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame] | 83 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 84 | name: 'LAVA_URL' |
| 85 | default: 'https://tf.validation.linaro.org' |
| 86 | - string: |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 87 | name: 'CODE_COVERAGE_EN' |
| 88 | default: 'TRUE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 89 | - string: |
Paul Sokolovsky | bd1327d | 2022-12-28 00:24:13 +0300 | [diff] [blame] | 90 | name: 'LCOV_FLAGS' |
| 91 | default: '--quiet' |
| 92 | description: | |
| 93 | Additional flags to pass to lcov |
| 94 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 95 | name: 'LAVA_CREDENTIALS' |
| 96 | default: 'LAVA_CREDENTIALS' |
| 97 | description: "Name of Jenkins credential for authentication with LAVA." |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 98 | - string: |
| 99 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 100 | default: '' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 101 | description: | |
| 102 | Specify which MCUboot version to use |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 103 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 104 | TAG_NAME : Pick up a tagged version |
| 105 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 106 | - string: |
| 107 | name: 'MCUBOOT_URL' |
| 108 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 109 | - string: |
| 110 | name: 'TFM_TESTS_URL' |
| 111 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 112 | - string: |
| 113 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 114 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 115 | description: | |
| 116 | Specify which tf-m-tests version to use |
| 117 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 118 | TAG_NAME : Pick up a tagged version |
| 119 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 120 | - string: |
| 121 | name: 'PSA_ARCH_TESTS_URL' |
| 122 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 123 | - string: |
| 124 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | 004f342 | 2023-06-27 12:02:31 +0800 | [diff] [blame] | 125 | default: '' |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 126 | description: | |
| 127 | Specify which psa-arch-tests version to use |
| 128 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 129 | TAG_NAME : Pick up a tagged version |
| 130 | full commit hash : Pick up a specific commit |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 131 | - string: |
Paul Sokolovsky | b86aa39 | 2022-12-12 19:52:18 +0300 | [diff] [blame] | 132 | name: 'EMAIL_NOTIFICATION' |
Matthew Dalzell | 839505e | 2024-05-21 15:20:30 +0100 | [diff] [blame] | 133 | default: 'matthew.dalzell@arm.com, paul.sokolovsky@linaro.org' |
Paul Sokolovsky | b86aa39 | 2022-12-12 19:52:18 +0300 | [diff] [blame] | 134 | - string: |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 135 | name: SHARE_FOLDER |
| 136 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 137 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 138 | - string: |
| 139 | name: 'DEVICE_FILTER' |
Paul Sokolovsky | 60c972a | 2022-04-30 18:13:14 +0300 | [diff] [blame] | 140 | default: '--fvp-only' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 141 | description: | |
| 142 | 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] | 143 | - string: |
| 144 | name: USE_TUXSUITE_FVP |
Paul Sokolovsky | 592eee2 | 2024-04-20 11:48:24 +0700 | [diff] [blame] | 145 | default: 1 |
Paul Sokolovsky | ff6152a | 2024-03-30 00:01:21 +0700 | [diff] [blame] | 146 | description: | |
| 147 | Whether to submit FVP tests via TuxSuite (instead of LAVA) |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 148 | wrappers: |
| 149 | - timestamps |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 150 | pipeline-scm: |
| 151 | scm: |
| 152 | - git: |
| 153 | url: '$CI_SCRIPTS_REPO' |
| 154 | branches: |
| 155 | - '$CI_SCRIPTS_BRANCH' |
Paul Sokolovsky | 60a13ac | 2024-07-05 11:52:04 +0300 | [diff] [blame] | 156 | refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*' |
Karl Zhang | 93a3c4c | 2020-07-10 12:40:34 +0800 | [diff] [blame] | 157 | credentials-id: GIT_SSH_KEY |
| 158 | wipe-workspace: false |
| 159 | script-path: jenkins/ci.jpl |