Xinyu Zhang | de844d1 | 2023-10-09 19:00:52 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020-2023, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-split-build |
| 10 | description: 'Triggers static checks on Gerrit trigger, then triggers build job after.' |
| 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 | parameters: |
| 20 | - string: |
Xinyu Zhang | c1c6e02 | 2023-10-16 10:38:29 +0800 | [diff] [blame] | 21 | name: 'FILTER_GROUP' |
| 22 | default: 'pp_test' |
| 23 | description: | |
| 24 | Filter to a group of configurations as recognised by configs.py |
| 25 | - string: |
Xinyu Zhang | de844d1 | 2023-10-09 19:00:52 +0800 | [diff] [blame] | 26 | name: 'CODE_REPO' |
| 27 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 28 | - string: |
| 29 | name: 'CI_SCRIPTS_REPO' |
| 30 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 31 | - string: |
| 32 | name: 'CI_SCRIPTS_BRANCH' |
| 33 | default: 'feature/split-build' |
| 34 | - string: |
| 35 | name: 'GERRIT_REFSPEC' |
| 36 | default: 'refs/heads/feature-build-split-v2' |
| 37 | description: | |
| 38 | Specify which TF-M version to use |
| 39 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 40 | TAG_NAME : Pick up a tagged version |
| 41 | full commit hash : Pick up a specific commit |
| 42 | - string: |
| 43 | name: 'GERRIT_BRANCH' |
| 44 | default: 'feature-build-split-v2' |
| 45 | description: | |
| 46 | TF-M branch. |
| 47 | - string: |
| 48 | name: 'GERRIT_HOST' |
| 49 | description: | |
| 50 | No need to change. |
| 51 | - string: |
| 52 | name: 'GERRIT_CHANGE_NUMBER' |
| 53 | description: | |
| 54 | No need to change. |
| 55 | - string: |
| 56 | name: 'GERRIT_PATCHSET_REVISION' |
| 57 | description: | |
| 58 | No need to change. |
| 59 | - string: |
| 60 | name: 'MCUBOOT_REFSPEC' |
| 61 | default: '' |
| 62 | description: | |
| 63 | Specify which MCUboot 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 |
| 67 | - string: |
| 68 | name: 'MCUBOOT_URL' |
| 69 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 70 | - string: |
| 71 | name: 'MBEDTLS_VERSION' |
| 72 | default: '' |
| 73 | description: | |
| 74 | Specify which MBEDTLS version to use |
| 75 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 76 | TAG_NAME : Pick up a tagged version |
| 77 | full commit hash : Pick up a specific commit |
| 78 | - string: |
| 79 | name: 'MBEDTLS_URL' |
| 80 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 81 | - string: |
| 82 | name: 'TFM_TESTS_URL' |
| 83 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 84 | - string: |
| 85 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 75600a1 | 2023-10-27 10:12:27 +0800 | [diff] [blame] | 86 | default: '' |
Xinyu Zhang | de844d1 | 2023-10-09 19:00:52 +0800 | [diff] [blame] | 87 | - string: |
| 88 | name: 'TFM_EXTRAS_URL' |
| 89 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git' |
| 90 | - string: |
| 91 | name: 'TFM_EXTRAS_REFSPEC' |
| 92 | default: '' |
| 93 | - string: |
| 94 | name: 'PSA_ARCH_TESTS_URL' |
| 95 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 96 | - string: |
| 97 | name: 'PSA_ARCH_TESTS_VERSION' |
Xinyu Zhang | b1d827e | 2023-10-30 14:08:51 +0800 | [diff] [blame] | 98 | default: '' |
Xinyu Zhang | de844d1 | 2023-10-09 19:00:52 +0800 | [diff] [blame] | 99 | description: | |
| 100 | Specify which psa-arch-tests version to use |
| 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 |
| 104 | - string: |
| 105 | name: 'QCBOR_URL' |
| 106 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 107 | - string: |
| 108 | name: 'QCBOR_VERSION' |
| 109 | default: '' |
| 110 | description: | |
| 111 | Specify which QCBOR version to use |
| 112 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 113 | TAG_NAME : Pick up a tagged version |
| 114 | full commit hash : Pick up a specific commit |
| 115 | - string: |
Xinyu Zhang | c1c6e02 | 2023-10-16 10:38:29 +0800 | [diff] [blame] | 116 | name: 'LAVA_URL' |
| 117 | default: 'https://tf.validation.linaro.org' |
| 118 | - string: |
| 119 | name: 'CODE_COVERAGE_EN' |
| 120 | default: 'FALSE' |
| 121 | - string: |
| 122 | name: 'LAVA_CREDENTIALS' |
| 123 | default: 'LAVA_CREDENTIALS' |
| 124 | description: "Name of Jenkins credential for authentication with LAVA." |
| 125 | - string: |
Xinyu Zhang | de844d1 | 2023-10-09 19:00:52 +0800 | [diff] [blame] | 126 | name: SHARE_FOLDER |
| 127 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 128 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 129 | triggers: |
| 130 | - gerrit: |
| 131 | trigger-on: |
| 132 | - comment-added-event: |
| 133 | approval-category: 'Allow-CI' |
| 134 | approval-value: '1' |
| 135 | projects: |
| 136 | - project-compare-type: 'PLAIN' |
| 137 | project-pattern: 'TF-M/trusted-firmware-m' |
| 138 | branches: |
| 139 | - branch-compare-type: 'PLAIN' |
| 140 | branch-pattern: 'feature-build-split-v2' |
| 141 | override-votes: true |
| 142 | gerrit-build-successful-verified-value: 1 |
| 143 | gerrit-build-failed-verified-value: -1 |
| 144 | gerrit-build-unstable-verified-value: -1 |
| 145 | gerrit-build-successful-codereview-value: 0 |
| 146 | gerrit-build-failed-codereview-value: 0 |
| 147 | gerrit-build-unstable-codereview-value: 0 |
| 148 | notification-level: 'OWNER_REVIEWERS' |
| 149 | custom-url: $RUN_DISPLAY_URL |
| 150 | wrappers: |
| 151 | - timestamps |
| 152 | pipeline-scm: |
| 153 | scm: |
| 154 | - git: |
| 155 | url: '$CI_SCRIPTS_REPO' |
| 156 | branches: |
| 157 | - '$CI_SCRIPTS_BRANCH' |
| 158 | credentials-id: GIT_SSH_KEY |
| 159 | wipe-workspace: false |
Xinyu Zhang | c1c6e02 | 2023-10-16 10:38:29 +0800 | [diff] [blame] | 160 | script-path: jenkins/ci.jpl |