Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Xinyu Zhang | 44a110c | 2023-01-30 10:50:10 +0100 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-static-checks |
| 10 | description: 'Runs (ARM) static checks over the source (tree or patch).' |
| 11 | project-type: pipeline |
| 12 | disabled: false |
| 13 | sandbox: true |
| 14 | concurrent: true |
| 15 | properties: |
| 16 | - build-discarder: |
Xinyu Zhang | 7d4feea | 2022-09-14 13:37:23 +0800 | [diff] [blame] | 17 | days-to-keep: 5 |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 18 | num-to-keep: 45 |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 19 | parameters: |
| 20 | - string: |
| 21 | name: 'GERRIT_HOST' |
| 22 | description: | |
| 23 | For use when triggering with unmerged Gerrit changes. |
| 24 | - string: |
| 25 | name: 'GERRIT_REFSPEC' |
| 26 | default: '+refs/heads/*:refs/remotes/origin/*' |
| 27 | description: | |
| 28 | For use when triggering with unmerged Gerrit changes. |
| 29 | - string: |
| 30 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 2643743 | 2023-09-25 11:50:23 +0800 | [diff] [blame] | 31 | default: 'main' |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 32 | description: | |
| 33 | For use when triggering with unmerged Gerrit changes. |
| 34 | - string: |
| 35 | name: 'GERRIT_CHANGE_NUMBER' |
| 36 | description: | |
| 37 | For use when triggering with unmerged Gerrit changes. |
| 38 | - string: |
| 39 | name: 'GERRIT_PATCHSET_REVISION' |
| 40 | description: | |
| 41 | For use when triggering with unmerged Gerrit changes. |
| 42 | - string: |
| 43 | name: 'CODE_REPO' |
| 44 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 45 | - string: |
| 46 | name: 'CI_SCRIPTS_REPO' |
| 47 | default: 'https://review.trustedfirmware.org/next/ci/tf-m-ci-scripts' |
| 48 | - string: |
| 49 | name: 'CI_SCRIPTS_BRANCH' |
Xinyu Zhang | d0c4e91 | 2022-01-20 15:50:23 +0800 | [diff] [blame] | 50 | default: 'master' |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 51 | - string: |
| 52 | name: 'MBEDTLS_VERSION' |
Xinyu Zhang | 2643743 | 2023-09-25 11:50:23 +0800 | [diff] [blame] | 53 | default: '' |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 54 | - string: |
| 55 | name: 'MBEDTLS_URL' |
| 56 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 57 | - string: |
| 58 | name: 'MCUBOOT_REFSPEC' |
Xinyu Zhang | 2643743 | 2023-09-25 11:50:23 +0800 | [diff] [blame] | 59 | default: '' |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 60 | description: | |
| 61 | Specify which MCUboot version to use |
| 62 | refs/heads/master : Pick up latest master |
| 63 | refs/tags/<TAG_NAME> : Pick up a tagged version |
| 64 | - string: |
| 65 | name: 'MCUBOOT_URL' |
| 66 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| 67 | - string: |
| 68 | name: 'TFM_TESTS_URL' |
| 69 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 70 | - string: |
| 71 | name: 'TFM_TESTS_REFSPEC' |
Xinyu Zhang | 2643743 | 2023-09-25 11:50:23 +0800 | [diff] [blame] | 72 | default: '' |
Xinyu Zhang | 33881cc | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 73 | wrappers: |
| 74 | - timestamps |
Xinyu Zhang | 58cb260 | 2020-12-22 10:44:50 +0800 | [diff] [blame] | 75 | pipeline-scm: |
| 76 | scm: |
| 77 | - git: |
| 78 | url: '$CI_SCRIPTS_REPO' |
| 79 | branches: |
| 80 | - '$CI_SCRIPTS_BRANCH' |
| 81 | credentials-id: GIT_SSH_KEY |
| 82 | wipe-workspace: false |
| 83 | script-path: jenkins/static-checks.jpl |