Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Galanakis, Minos | 7b32179 | 2020-01-09 11:01:02 +0000 | [diff] [blame] | 2 | # Copyright (c) 2018-2020, Arm Limited. All rights reserved. |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-build-test-review |
| 10 | description: 'This job is triggered by gerrit for TF-M code reviews.' |
| 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 |
Riku Voipio | e2beb0d | 2019-10-03 16:13:13 +0300 | [diff] [blame] | 19 | - authorization: |
| 20 | suihkulokki: |
| 21 | - job-read |
| 22 | - job-extended-read |
| 23 | - job-build |
| 24 | - job-cancel |
Galanakis, Minos | ebf502a | 2019-10-07 10:42:10 +0100 | [diff] [blame] | 25 | minosgalanakis: |
Riku Voipio | e2beb0d | 2019-10-03 16:13:13 +0300 | [diff] [blame] | 26 | - job-read |
| 27 | - job-extended-read |
| 28 | - job-build |
| 29 | - job-cancel |
| 30 | bhcopeland: |
| 31 | - job-read |
| 32 | - job-extended-read |
| 33 | - job-build |
| 34 | - job-cancel |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 35 | triggers: |
| 36 | - gerrit: |
| 37 | trigger-on: |
Galanakis, Minos | 648ab10 | 2019-09-10 13:56:47 +0100 | [diff] [blame] | 38 | - comment-added-event: |
| 39 | approval-category: 'Allow-CI' |
| 40 | approval-value: '1' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 41 | dynamic-trigger-enabled: false |
| 42 | projects: |
| 43 | - project-compare-type: 'PLAIN' |
| 44 | project-pattern: 'trusted-firmware-m' |
| 45 | branches: |
| 46 | - branch-compare-type: 'REG_EXP' |
| 47 | branch-pattern: 'master' |
| 48 | disable-strict-forbidden-file-verification: false |
| 49 | skip-vote: |
| 50 | successful: false |
| 51 | failed: false |
| 52 | unstable: false |
| 53 | notbuilt: false |
| 54 | silent: false |
| 55 | silent-start: false |
| 56 | notification-level: 'OWNER_REVIEWERS' |
| 57 | parameters: |
| 58 | - string: |
| 59 | name: 'GERRIT_URL' |
| 60 | description: 'Base address of gerrit host' |
| 61 | default: 'https://review.trustedfirmware.org' |
| 62 | - string: |
| 63 | name: 'GERRIT_REFSPEC' |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 64 | description: > |
| 65 | Git branch or "refspec" (e.g. rc3, |
| 66 | refs/changes/79/91279/2) to work on. |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 67 | default: 'master' |
| 68 | - string: |
| 69 | name: 'GERRIT_PROJECT' |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 70 | description: > |
| 71 | Repository on gerrit server to test |
| 72 | against (e.g. iot-sw/tf-m/internal/tf-m |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 73 | default: 'trusted-firmware-m' |
| 74 | - string: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 75 | name: 'REF_DEP_CHECKOUT_NAME' |
| 76 | description: > |
| 77 | Reference to the job to check out dependencies artifacts from |
| 78 | default: 'tf-m-dependencies-checkout' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 79 | - string: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 80 | name: 'DEPENDENCIES_ARCHIVE_NAME_ZIP' |
| 81 | description: 'Archive name of dependencies artifacts' |
| 82 | default: 'tfm_dependencies.zip' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 83 | - string: |
| 84 | name: 'GERRIT_SCRIPTS' |
| 85 | description: 'Helper scripts used in conjuction with Jenkins' |
| 86 | default: 'ci/tf-m-ci-scripts' |
| 87 | - string: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 88 | name: 'GERRIT_SCRIPTS_REFSP' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 89 | description: 'Branch or refspec to checkout' |
| 90 | default: 'master' |
| 91 | - text: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 92 | name: 'BUILD_PARALLEL_NO' |
| 93 | description: "Number of parallel configuration builds." |
| 94 | default: '12' |
| 95 | - text: |
| 96 | name: 'BUILD_THREAD_NO' |
| 97 | description: "Number of build threads per configuration build." |
| 98 | default: '6' |
| 99 | - text: |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 100 | name: 'BUILD_CONFIG_JSON' |
| 101 | description: "Build configuration json formatted." |
| 102 | - text: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 103 | name: 'LAVA_TEST_CONFIG_JSON' |
| 104 | description: "Override LAVA Test configuration (json format)." |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 105 | - string: |
| 106 | name: 'SUMMARY_FILE' |
| 107 | description: "Job output aggregrated summary file(Plain text)." |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 108 | default: 'summary.json' |
| 109 | - string: |
| 110 | name: 'DEPENDENCIES_CONTENTS_FILE' |
| 111 | description: 'Artifact name for contents of archive.' |
| 112 | default: 'dependencies_checkout_contents.json' |
| 113 | - string: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 114 | name: 'DEPENDENCIES_MBED_CRYPTO_TAG' |
| 115 | description: 'Selected version of mbed-crypto (from contents)' |
Minos Galanakis | 9a8076a | 2020-02-21 14:00:46 +0000 | [diff] [blame] | 116 | default: '3.0.1' |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 117 | - string: |
| 118 | name: 'DEPENDENCIES_CMSIS_TAG' |
| 119 | description: 'Selected version of cmsis (from contents)' |
| 120 | default: '5.5.0' |
| 121 | - string: |
| 122 | name: 'DEPENDENCIES_FPV_TAG' |
| 123 | description: 'Selected version of fastmodel (from contents)' |
| 124 | default: '' |
| 125 | - string: |
| 126 | name: 'DEPENDENCIES_CHECKPATCH_TAG' |
| 127 | description: 'Selected version of checkpatch (from contents)' |
| 128 | default: '852d095' |
| 129 | - string: |
| 130 | name: 'FPGA_IMAGES_TAG_LIST' |
| 131 | description: > |
| 132 | FPGA image names (comma separated list) to be exposed to lava |
| 133 | default: 'mps2_an521_v3.0, mps2_an519_v3.0' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 134 | - string: |
| 135 | name: 'LAVA_URL' |
Benjamin Copeland | 326f28b | 2020-02-26 16:14:24 +0000 | [diff] [blame] | 136 | default: 'https://tf.validation.linaro.org' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 137 | description: 'URL of the LAVA instance.' |
| 138 | - string: |
| 139 | name: 'LAVA_CREDENTIAL_ID' |
Dean Arnold | 83f1af2 | 2019-05-15 20:58:03 +0100 | [diff] [blame] | 140 | default: 'LAVA_TOKEN' |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 141 | description: | |
| 142 | 'ID of the Jenkins credential containing a LAVA auth token.' |
| 143 | - string: |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 144 | name: 'MAINTAINER_EMAIL' |
| 145 | description: 'Person to be notified of failure ( empty = disable )' |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 146 | default: '' |
| 147 | - choice: |
| 148 | name: 'FASTMODEL_TEST' |
| 149 | choices: |
| 150 | - Disable |
| 151 | - Enable |
| 152 | description: "Set to enable Fastmodel testing of artefacts" |
| 153 | - choice: |
| 154 | name: 'LAVA_TEST' |
| 155 | choices: |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 156 | - Disable |
Galanakis, Minos | 7b32179 | 2020-01-09 11:01:02 +0000 | [diff] [blame] | 157 | - Enable |
Galanakis, Minos | b96c6d4 | 2019-06-20 10:41:28 +0100 | [diff] [blame] | 158 | description: "Set to enable LAVA testing of artefacts" |
| 159 | - choice: |
| 160 | name: 'BUILD_DOCS' |
| 161 | choices: |
| 162 | - Disable |
| 163 | - Enable |
| 164 | description: "Set to enable Documentation building" |
Minos Galanakis | da54684 | 2018-10-10 17:03:36 +0100 | [diff] [blame] | 165 | dsl: |
| 166 | !include-raw: |
| 167 | - ./pipelines/tf-m-build-test-review |