blob: 633dde7f6a57b14c0aef750427c0bcbfb70330de [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Xinyu Zhang59f7fee2021-05-21 14:04:11 +08002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Dean Birche4cbc7c2020-01-20 10:40:21 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-cppcheck
10 description: 'Runs cppcheck over the source (tree or patch).'
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 Voipiod4ea5342020-09-04 16:00:02 +030019 - authorization:
20 anonymous:
21 - job-read
22 - job-extended-read
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 parameters:
24 - string:
25 name: 'GERRIT_HOST'
26 description: |
27 For use when triggering with unmerged Gerrit changes.
28 - string:
29 name: 'GERRIT_REFSPEC'
Xinyu Zhangcff9eaa2020-12-11 14:51:34 +080030 default: 'refs/heads/master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000031 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 Boudraccaba542020-11-19 10:11:43 +010047 name: 'CODE_REPO'
48 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
49 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000050 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030051 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000052 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010053 name: 'CI_SCRIPTS_BRANCH'
54 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000055 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080056 name: 'MBEDTLS_VERSION'
Xinyu Zhangdbcdf652021-07-12 15:00:46 +080057 default: 'mbedtls-3.0.0'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080058 - string:
59 name: 'MBEDTLS_URL'
60 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
61 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010062 name: 'MCUBOOT_REFSPEC'
Sherry Zhangc068a442021-08-02 10:39:48 +080063 default: 'TF-Mv1.4-integ'
Tamas Ban424f8ce2020-10-06 12:06:04 +010064 description: |
65 Specify which MCUboot version to use
66 refs/heads/master : Pick up latest master
67 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Banb9f28642020-06-19 12:16:44 +010068 - string:
69 name: 'MCUBOOT_URL'
Karl Zhangcee73552020-07-01 16:52:11 +080070 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Banb9f28642020-06-19 12:16:44 +010071 - string:
Kevin Pengc68398a2020-06-22 10:57:57 +080072 name: 'TFM_TESTS_URL'
73 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
74 - string:
75 name: 'TFM_TESTS_REFSPEC'
76 default: 'refs/heads/master'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080077 wrappers:
78 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000079 pipeline-scm:
80 scm:
81 - git:
82 url: '$CI_SCRIPTS_REPO'
83 branches:
84 - '$CI_SCRIPTS_BRANCH'
85 credentials-id: GIT_SSH_KEY
86 wipe-workspace: false
87 script-path: jenkins/cppcheck.jpl