blob: d169da8340954585dcbd1c663bfbcc185ee3be74 [file] [log] [blame]
Leonardo Sandoval0db971a2020-07-17 17:01:44 -05001#-------------------------------------------------------------------------------
Xinyu Zhanga16c5e82022-06-13 11:08:18 +08002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Leonardo Sandoval0db971a2020-07-17 17:01:44 -05003#
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 Sandoval0db971a2020-07-17 17:01:44 -050016 - 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:
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050043 name: 'CODE_REPO'
44 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
45 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010046 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030047 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Fathi Boudraccaba542020-11-19 10:11:43 +010048 - string:
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050049 name: 'CI_SCRIPTS_BRANCH'
50 default: 'master'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080051 wrappers:
52 - timestamps
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050053 pipeline-scm:
54 scm:
55 - git:
56 url: '$CI_SCRIPTS_REPO'
57 branches:
58 - '$CI_SCRIPTS_BRANCH'
59 credentials-id: GIT_SSH_KEY
60 wipe-workspace: false
61 script-path: jenkins/static-checks.jpl