Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Xinyu Zhang | a16c5e8 | 2022-06-13 11:08:18 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [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: |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 45 |
| 19 | parameters: |
| 20 | - string: |
| 21 | name: 'GERRIT_HOST' |
| 22 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 23 | No need to change. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 24 | - string: |
| 25 | name: 'GERRIT_REFSPEC' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 26 | default: 'refs/heads/main' |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 27 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 28 | Specify which TF-M version to use |
| 29 | refs/heads/<branch_name> : Pick up latest HEAD on branch |
| 30 | TAG_NAME : Pick up a tagged version |
| 31 | full commit hash : Pick up a specific commit. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 32 | - string: |
| 33 | name: 'GERRIT_BRANCH' |
Xinyu Zhang | 8450cc9 | 2023-09-21 16:46:13 +0800 | [diff] [blame] | 34 | default: 'main' |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 35 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 36 | TF-M branch. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 37 | - string: |
| 38 | name: 'GERRIT_CHANGE_NUMBER' |
| 39 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 40 | No need to change. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 41 | - string: |
| 42 | name: 'GERRIT_PATCHSET_REVISION' |
| 43 | description: | |
Xinyu Zhang | 8926ad3 | 2023-02-15 14:43:38 +0800 | [diff] [blame] | 44 | No need to change. |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 45 | - string: |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 46 | name: 'CODE_REPO' |
| 47 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 48 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 49 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 50 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 51 | - string: |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 52 | name: 'CI_SCRIPTS_BRANCH' |
| 53 | default: 'master' |
Paul Sokolovsky | fbb0d13 | 2024-07-12 20:20:03 +0300 | [diff] [blame] | 54 | description: | |
| 55 | Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1' |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 56 | wrappers: |
| 57 | - timestamps |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 58 | pipeline-scm: |
| 59 | scm: |
| 60 | - git: |
| 61 | url: '$CI_SCRIPTS_REPO' |
| 62 | branches: |
| 63 | - '$CI_SCRIPTS_BRANCH' |
Paul Sokolovsky | 60a13ac | 2024-07-05 11:52:04 +0300 | [diff] [blame] | 64 | refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*' |
Leonardo Sandoval | 0db971a | 2020-07-17 17:01:44 -0500 | [diff] [blame] | 65 | credentials-id: GIT_SSH_KEY |
| 66 | wipe-workspace: false |
| 67 | script-path: jenkins/static-checks.jpl |