blob: 5c8e2ec7e90d11688b9f0fd1d819dd94226d10e5 [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: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080023 No need to change.
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050024 - string:
25 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080026 default: 'refs/heads/main'
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050027 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080028 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 Sandoval0db971a2020-07-17 17:01:44 -050032 - string:
33 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080034 default: 'main'
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050035 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080036 TF-M branch.
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050037 - string:
38 name: 'GERRIT_CHANGE_NUMBER'
39 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080040 No need to change.
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050041 - string:
42 name: 'GERRIT_PATCHSET_REVISION'
43 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080044 No need to change.
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050045 - string:
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050046 name: 'CODE_REPO'
47 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
48 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010049 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030050 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Fathi Boudraccaba542020-11-19 10:11:43 +010051 - string:
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050052 name: 'CI_SCRIPTS_BRANCH'
53 default: 'master'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080054 wrappers:
55 - timestamps
Leonardo Sandoval0db971a2020-07-17 17:01:44 -050056 pipeline-scm:
57 scm:
58 - git:
59 url: '$CI_SCRIPTS_REPO'
60 branches:
61 - '$CI_SCRIPTS_BRANCH'
62 credentials-id: GIT_SSH_KEY
63 wipe-workspace: false
64 script-path: jenkins/static-checks.jpl