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 |
| 19 | - authorization: |
Fathi Boudra | db89177 | 2021-03-02 14:12:48 +0100 | [diff] [blame] | 20 | !include: authorization.yaml.inc |
Dean Birch | a818da4 | 2020-05-26 14:46:21 +0100 | [diff] [blame] | 21 | - throttle: |
| 22 | max-total: 5 |
| 23 | option: project |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 24 | # Will be triggered from tf-m-static-checks or can be triggered manually |
| 25 | #triggers: [] |
| 26 | parameters: |
| 27 | - string: |
| 28 | name: 'FILTER_GROUP' |
| 29 | # TODO once available, use a group that filters to configurations we want |
Xinyu Zhang | 82a366c | 2022-04-11 18:18:59 +0800 | [diff] [blame] | 30 | default: 'pp_test pp_corstone1000' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 31 | description: | |
| 32 | Filter to a group of configurations as recognised by configs.py |
| 33 | - string: |
| 34 | name: 'CODE_REPO' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 35 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 36 | - string: |
| 37 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 38 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 39 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 40 | name: 'CI_SCRIPTS_BRANCH' |
| 41 | default: 'master' |
| 42 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 43 | name: 'GERRIT_REFSPEC' |
| 44 | default: 'refs/heads/master' |
| 45 | description: | |
| 46 | For use when triggering with unmerged Gerrit changes. |
| 47 | - string: |
| 48 | name: 'GERRIT_BRANCH' |
| 49 | default: 'master' |
| 50 | description: | |
| 51 | For use when triggering with unmerged Gerrit changes. |
| 52 | - string: |
| 53 | name: 'GERRIT_HOST' |
| 54 | description: | |
| 55 | For use when triggering with unmerged Gerrit changes. |
| 56 | - string: |
| 57 | name: 'GERRIT_CHANGE_NUMBER' |
| 58 | description: | |
| 59 | For use when triggering with unmerged Gerrit changes. |
| 60 | - string: |
| 61 | name: 'GERRIT_PATCHSET_REVISION' |
| 62 | description: | |
| 63 | For use when triggering with unmerged Gerrit changes. |
| 64 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 65 | name: 'MBEDTLS_VERSION' |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame] | 66 | default: 'mbedtls-3.1.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 67 | - string: |
| 68 | name: 'MBEDTLS_URL' |
| 69 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 70 | - string: |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 71 | name: 'MCUBOOT_URL' |
| 72 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 73 | - string: |
| 74 | name: 'MCUBOOT_REFSPEC' |
Sherry Zhang | 10ffcca | 2022-03-03 11:38:23 +0800 | [diff] [blame] | 75 | default: 'v1.9.0' |
Paul Sokolovsky | 1dee860 | 2021-12-27 17:16:53 +0300 | [diff] [blame] | 76 | description: | |
| 77 | Specify which MCUboot version to use |
| 78 | refs/heads/master : Pick up latest master |
| 79 | refs/tags/<TAG_NAME> : Pick up a tagged version |
| 80 | - string: |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 81 | name: 'TFM_TESTS_URL' |
| 82 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 83 | - string: |
| 84 | name: 'TFM_TESTS_REFSPEC' |
| 85 | default: 'refs/heads/master' |
| 86 | - string: |
| 87 | name: 'PSA_ARCH_TESTS_URL' |
| 88 | default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git' |
| 89 | - string: |
| 90 | name: 'PSA_ARCH_TESTS_VERSION' |
Summer Qin | 9da600e | 2022-04-06 17:48:13 +0800 | [diff] [blame] | 91 | default: 'f7e8495dede62196a7fdd88470c58cf672525238' |
Paul Sokolovsky | c0a1f05 | 2021-12-27 16:59:55 +0300 | [diff] [blame] | 92 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 93 | name: 'LAVA_URL' |
| 94 | default: 'https://tf.validation.linaro.org' |
| 95 | - string: |
Karl Zhang | 68a81b4 | 2020-07-24 18:38:08 +0800 | [diff] [blame] | 96 | name: 'CODE_COVERAGE_EN' |
| 97 | default: 'FALSE' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 98 | - string: |
| 99 | name: 'LAVA_CREDENTIALS' |
| 100 | default: 'LAVA_CREDENTIALS' |
| 101 | description: "Name of Jenkins credential for authentication with LAVA." |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 102 | - string: |
| 103 | name: SHARE_FOLDER |
| 104 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 105 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 106 | wrappers: |
| 107 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 108 | pipeline-scm: |
| 109 | scm: |
| 110 | - git: |
| 111 | url: '$CI_SCRIPTS_REPO' |
| 112 | branches: |
| 113 | - '$CI_SCRIPTS_BRANCH' |
| 114 | credentials-id: GIT_SSH_KEY |
| 115 | wipe-workspace: false |
| 116 | script-path: jenkins/ci.jpl |