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-checkpatch |
Leonardo Sandoval | a6727d9 | 2020-07-17 17:47:37 -0500 | [diff] [blame] | 10 | description: 'Runs checkpatch over the source (tree or patch).' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 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: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame^] | 47 | name: 'CODE_REPO' |
| 48 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 49 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 50 | name: 'CI_SCRIPTS_REPO' |
| 51 | default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
| 52 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame^] | 53 | name: 'CI_SCRIPTS_BRANCH' |
| 54 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 55 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 56 | name: 'MBEDTLS_VERSION' |
Summer Qin | a400be8 | 2020-10-28 15:00:00 +0800 | [diff] [blame] | 57 | default: 'mbedtls-2.24.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 58 | - string: |
| 59 | name: 'MBEDTLS_URL' |
| 60 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 61 | pipeline-scm: |
| 62 | scm: |
| 63 | - git: |
| 64 | url: '$CI_SCRIPTS_REPO' |
| 65 | branches: |
| 66 | - '$CI_SCRIPTS_BRANCH' |
| 67 | credentials-id: GIT_SSH_KEY |
| 68 | wipe-workspace: false |
| 69 | script-path: jenkins/checkpatch.jpl |