Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 8d6aae0 | 2023-01-20 11:15:51 +0800 | [diff] [blame^] | 2 | # Copyright (c) 2020-2023, 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-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 |
| 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' |
| 31 | default: 'master' |
| 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: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 43 | name: 'CODE_REPO' |
| 44 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 45 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 46 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 47 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 48 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 49 | name: 'CI_SCRIPTS_BRANCH' |
| 50 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 51 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 52 | name: 'MBEDTLS_VERSION' |
Summer Qin | 8d6aae0 | 2023-01-20 11:15:51 +0800 | [diff] [blame^] | 53 | default: 'mbedtls-3.3.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 54 | - string: |
| 55 | name: 'MBEDTLS_URL' |
| 56 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
Leonardo Sandoval | 4a02421 | 2021-09-17 14:05:27 -0500 | [diff] [blame] | 57 | - string: |
| 58 | name: SHARE_FOLDER |
| 59 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 60 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 61 | wrappers: |
| 62 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 63 | pipeline-scm: |
| 64 | scm: |
| 65 | - git: |
| 66 | url: '$CI_SCRIPTS_REPO' |
| 67 | branches: |
| 68 | - '$CI_SCRIPTS_BRANCH' |
| 69 | credentials-id: GIT_SSH_KEY |
| 70 | wipe-workspace: false |
| 71 | script-path: jenkins/checkpatch.jpl |