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: |
| 21 | name: 'CODE_REPO' |
| 22 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 23 | - string: |
| 24 | name: 'CI_SCRIPTS_REPO' |
| 25 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 26 | - string: |
| 27 | name: 'CI_SCRIPTS_BRANCH' |
| 28 | default: 'feature/split-build' |
| 29 | - string: |
| 30 | name: 'GERRIT_REFSPEC' |
| 31 | default: 'refs/heads/feature-build-split-v2' |
| 32 | description: | |
| 33 | Specify which TF-M version to use |
| 34 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 35 | TAG_NAME : Pick up a tagged version |
| 36 | full commit hash : Pick up a specific commit |
| 37 | - string: |
| 38 | name: 'GERRIT_BRANCH' |
| 39 | default: 'feature-build-split-v2' |
| 40 | description: | |
| 41 | TF-M branch. |
| 42 | - string: |
| 43 | name: 'GERRIT_HOST' |
| 44 | description: | |
| 45 | No need to change. |
| 46 | - string: |
| 47 | name: 'GERRIT_CHANGE_NUMBER' |
| 48 | description: | |
| 49 | No need to change. |
| 50 | - string: |
| 51 | name: 'GERRIT_PATCHSET_REVISION' |
| 52 | description: | |
| 53 | No need to change. |
| 54 | - string: |
| 55 | name: 'MCUBOOT_REFSPEC' |
| 56 | default: '' |
| 57 | description: | |
| 58 | Specify which MCUboot version to use |
| 59 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 60 | TAG_NAME : Pick up a tagged version |
| 61 | full commit hash : Pick up a specific commit |
| 62 | - string: |
| 63 | name: 'MCUBOOT_URL' |
| 64 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 65 | - string: |
| 66 | name: 'MBEDTLS_VERSION' |
| 67 | default: '' |
| 68 | description: | |
| 69 | Specify which MBEDTLS version to use |
| 70 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 71 | TAG_NAME : Pick up a tagged version |
| 72 | full commit hash : Pick up a specific commit |
| 73 | - string: |
| 74 | name: 'MBEDTLS_URL' |
| 75 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 76 | - string: |
| 77 | name: 'TFM_TESTS_URL' |
| 78 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 79 | - string: |
| 80 | name: 'TFM_TESTS_REFSPEC' |
| 81 | default: '' |
| 82 | - string: |
| 83 | name: 'TFM_EXTRAS_URL' |
| 84 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git' |
| 85 | - string: |
| 86 | name: 'TFM_EXTRAS_REFSPEC' |
| 87 | default: '' |
| 88 | - string: |
| 89 | name: 'PSA_ARCH_TESTS_URL' |
| 90 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 91 | - string: |
| 92 | name: 'PSA_ARCH_TESTS_VERSION' |
| 93 | default: '5c57920' |
| 94 | description: | |
| 95 | Specify which psa-arch-tests version to use |
| 96 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 97 | TAG_NAME : Pick up a tagged version |
| 98 | full commit hash : Pick up a specific commit |
| 99 | - string: |
| 100 | name: 'QCBOR_URL' |
| 101 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 102 | - string: |
| 103 | name: 'QCBOR_VERSION' |
| 104 | default: '' |
| 105 | description: | |
| 106 | Specify which QCBOR version to use |
| 107 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 108 | TAG_NAME : Pick up a tagged version |
| 109 | full commit hash : Pick up a specific commit |
| 110 | - string: |
| 111 | name: SHARE_FOLDER |
| 112 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 113 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 114 | triggers: |
| 115 | - gerrit: |
| 116 | trigger-on: |
| 117 | - comment-added-event: |
| 118 | approval-category: 'Allow-CI' |
| 119 | approval-value: '1' |
| 120 | projects: |
| 121 | - project-compare-type: 'PLAIN' |
| 122 | project-pattern: 'TF-M/trusted-firmware-m' |
| 123 | branches: |
| 124 | - branch-compare-type: 'PLAIN' |
| 125 | branch-pattern: 'feature-build-split-v2' |
| 126 | override-votes: true |
| 127 | gerrit-build-successful-verified-value: 1 |
| 128 | gerrit-build-failed-verified-value: -1 |
| 129 | gerrit-build-unstable-verified-value: -1 |
| 130 | gerrit-build-successful-codereview-value: 0 |
| 131 | gerrit-build-failed-codereview-value: 0 |
| 132 | gerrit-build-unstable-codereview-value: 0 |
| 133 | notification-level: 'OWNER_REVIEWERS' |
| 134 | custom-url: $RUN_DISPLAY_URL |
| 135 | wrappers: |
| 136 | - timestamps |
| 137 | pipeline-scm: |
| 138 | scm: |
| 139 | - git: |
| 140 | url: '$CI_SCRIPTS_REPO' |
| 141 | branches: |
| 142 | - '$CI_SCRIPTS_BRANCH' |
| 143 | credentials-id: GIT_SSH_KEY |
| 144 | wipe-workspace: false |
| 145 | script-path: jenkins/static.jpl |