Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-build-and-test |
| 10 | description: 'This job is triggered by gerrit for TF-M code reviews.' |
| 11 | project-type: pipeline |
| 12 | disabled: false |
| 13 | sandbox: true |
Dean Birch | a818da4 | 2020-05-26 14:46:21 +0100 | [diff] [blame] | 14 | concurrent: true |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 15 | properties: |
| 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 45 |
Dean Birch | a818da4 | 2020-05-26 14:46:21 +0100 | [diff] [blame] | 19 | - throttle: |
| 20 | max-total: 5 |
| 21 | option: project |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 22 | # Will be triggered from tf-m-static-checks or can be triggered manually |
| 23 | #triggers: [] |
| 24 | parameters: |
| 25 | - string: |
| 26 | name: 'FILTER_GROUP' |
| 27 | # TODO once available, use a group that filters to configurations we want |
Xinyu Zhang | 82a366c | 2022-04-11 18:18:59 +0800 | [diff] [blame] | 28 | default: 'pp_test pp_corstone1000' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 29 | description: | |
| 30 | Filter to a group of configurations as recognised by configs.py |
| 31 | - string: |
| 32 | name: 'CODE_REPO' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 33 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 34 | - string: |
| 35 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 36 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 37 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 38 | name: 'CI_SCRIPTS_BRANCH' |
| 39 | default: 'master' |
| 40 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 41 | name: 'GERRIT_REFSPEC' |
| 42 | default: 'refs/heads/master' |
| 43 | description: | |
| 44 | For use when triggering with unmerged Gerrit changes. |
| 45 | - string: |
| 46 | name: 'GERRIT_BRANCH' |
| 47 | default: 'master' |
| 48 | description: | |
| 49 | For use when triggering with unmerged Gerrit changes. |
| 50 | - string: |
| 51 | name: 'GERRIT_HOST' |
| 52 | description: | |
| 53 | For use when triggering with unmerged Gerrit changes. |
| 54 | - string: |
| 55 | name: 'GERRIT_CHANGE_NUMBER' |
| 56 | description: | |
| 57 | For use when triggering with unmerged Gerrit changes. |
| 58 | - string: |
| 59 | name: 'GERRIT_PATCHSET_REVISION' |
| 60 | description: | |
| 61 | For use when triggering with unmerged Gerrit changes. |
| 62 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 63 | name: 'MBEDTLS_VERSION' |
Antonio de Angelis | 20c0440 | 2022-07-16 00:01:05 +0100 | [diff] [blame] | 64 | default: 'mbedtls-3.2.1' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 65 | - string: |
| 66 | name: 'MBEDTLS_URL' |
| 67 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 68 | - string: |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 69 | name: 'MCUBOOT_URL' |
| 70 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 71 | - string: |
| 72 | name: 'MCUBOOT_REFSPEC' |
Sherry Zhang | 10ffcca | 2022-03-03 11:38:23 +0800 | [diff] [blame] | 73 | default: 'v1.9.0' |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 74 | description: | |
| 75 | Specify which MCUboot version to use |
| 76 | refs/heads/master : Pick up latest master |
| 77 | refs/tags/<TAG_NAME> : Pick up a tagged version |
| 78 | - string: |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 79 | name: 'TFM_TESTS_URL' |
| 80 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 81 | - string: |
| 82 | name: 'TFM_TESTS_REFSPEC' |
| 83 | default: 'refs/heads/master' |
| 84 | - string: |
| 85 | name: 'PSA_ARCH_TESTS_URL' |
| 86 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 87 | - string: |
| 88 | name: 'PSA_ARCH_TESTS_VERSION' |
Summer | 8858e3e | 2022-11-15 10:40:04 +0800 | [diff] [blame] | 89 | default: 'cf8bd7191219df9bdef387abcd750f0709283f98' |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 90 | - string: |
Xinyu Zhang | 79e1aa1 | 2022-11-23 17:50:21 +0800 | [diff] [blame^] | 91 | name: 'QCBOR_URL' |
| 92 | default: 'https://github.com/laurencelundblade/QCBOR.git' |
| 93 | - string: |
| 94 | name: 'QCBOR_VERSION' |
| 95 | default: 'b0e7033268e88c9f27146fa9a1415ef4c19ebaff' |
| 96 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 97 | name: 'LAVA_URL' |
| 98 | default: 'https://tf.validation.linaro.org' |
| 99 | - string: |
Karl Zhang | 68a81b4 | 2020-07-24 18:38:08 +0800 | [diff] [blame] | 100 | name: 'CODE_COVERAGE_EN' |
| 101 | default: 'FALSE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 102 | - string: |
Xinyu Zhang | 1a4d110 | 2022-10-18 17:39:01 +0800 | [diff] [blame] | 103 | name: 'SQUAD_CONFIGURATIONS' |
| 104 | default: 'disabled' |
| 105 | description: 'Send metrics of reference configurations to a SQUAD Dashboard' |
| 106 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 107 | name: 'LAVA_CREDENTIALS' |
| 108 | default: 'LAVA_CREDENTIALS' |
| 109 | description: "Name of Jenkins credential for authentication with LAVA." |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 110 | - string: |
| 111 | name: SHARE_FOLDER |
| 112 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 113 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 114 | - string: |
| 115 | name: 'DEVICE_FILTER' |
| 116 | default: '' |
| 117 | description: | |
| 118 | Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only) |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 119 | wrappers: |
| 120 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 121 | pipeline-scm: |
| 122 | scm: |
| 123 | - git: |
| 124 | url: '$CI_SCRIPTS_REPO' |
| 125 | branches: |
| 126 | - '$CI_SCRIPTS_BRANCH' |
| 127 | credentials-id: GIT_SSH_KEY |
| 128 | wipe-workspace: false |
| 129 | script-path: jenkins/ci.jpl |