Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | - job: |
| 9 | name: tf-m-cppcheck |
| 10 | description: 'Runs cppcheck over the source (tree or patch).' |
| 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 | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 19 | - authorization: |
| 20 | anonymous: |
| 21 | - job-read |
| 22 | - job-extended-read |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 23 | parameters: |
| 24 | - string: |
| 25 | name: 'GERRIT_HOST' |
| 26 | description: | |
| 27 | For use when triggering with unmerged Gerrit changes. |
| 28 | - string: |
| 29 | name: 'GERRIT_REFSPEC' |
| 30 | default: '+refs/heads/*:refs/remotes/origin/*' |
| 31 | description: | |
| 32 | For use when triggering with unmerged Gerrit changes. |
| 33 | - string: |
| 34 | name: 'GERRIT_BRANCH' |
| 35 | default: 'master' |
| 36 | description: | |
| 37 | For use when triggering with unmerged Gerrit changes. |
| 38 | - string: |
| 39 | name: 'GERRIT_CHANGE_NUMBER' |
| 40 | description: | |
| 41 | For use when triggering with unmerged Gerrit changes. |
| 42 | - string: |
| 43 | name: 'GERRIT_PATCHSET_REVISION' |
| 44 | description: | |
| 45 | For use when triggering with unmerged Gerrit changes. |
| 46 | - string: |
| 47 | name: 'CI_SCRIPTS_REPO' |
| 48 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 49 | - string: |
| 50 | name: 'CODE_REPO' |
Dean Birch | 1817bb6 | 2020-06-02 14:00:23 +0100 | [diff] [blame] | 51 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 52 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 53 | name: 'MBEDTLS_VERSION' |
| 54 | default: 'mbedtls-2.23.0' |
| 55 | - string: |
| 56 | name: 'MBEDTLS_URL' |
| 57 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 58 | - string: |
Tamas Ban | 29d6e44 | 2020-09-16 13:42:51 +0100 | [diff] [blame] | 59 | name: 'MCUBOOT_REFSPEC' |
Tamas Ban | 424f8ce | 2020-10-06 12:06:04 +0100 | [diff] [blame^] | 60 | default: 'refs/tags/TF-Mv1.2-integ' |
| 61 | description: | |
| 62 | Specify which MCUboot version to use |
| 63 | refs/heads/master : Pick up latest master |
| 64 | refs/tags/<TAG_NAME> : Pick up a tagged version |
Tamas Ban | b9f2864 | 2020-06-19 12:16:44 +0100 | [diff] [blame] | 65 | - string: |
| 66 | name: 'MCUBOOT_URL' |
Karl Zhang | cee7355 | 2020-07-01 16:52:11 +0800 | [diff] [blame] | 67 | default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
Tamas Ban | b9f2864 | 2020-06-19 12:16:44 +0100 | [diff] [blame] | 68 | - string: |
Kevin Peng | c68398a | 2020-06-22 10:57:57 +0800 | [diff] [blame] | 69 | name: 'TFM_TESTS_URL' |
| 70 | default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| 71 | - string: |
| 72 | name: 'TFM_TESTS_REFSPEC' |
| 73 | default: 'refs/heads/master' |
| 74 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 75 | name: 'CI_SCRIPTS_BRANCH' |
| 76 | default: 'master' |
| 77 | pipeline-scm: |
| 78 | scm: |
| 79 | - git: |
| 80 | url: '$CI_SCRIPTS_REPO' |
| 81 | branches: |
| 82 | - '$CI_SCRIPTS_BRANCH' |
| 83 | credentials-id: GIT_SSH_KEY |
| 84 | wipe-workspace: false |
| 85 | script-path: jenkins/cppcheck.jpl |