blob: 4293da68ae149150f7fb22620a76158fffb6ef07 [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
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'
30 default: '+refs/heads/*:refs/remotes/origin/*'
31 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:
47 name: 'CI_SCRIPTS_REPO'
48 default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts'
49 - string:
50 name: 'CODE_REPO'
Dean Birch1817bb62020-06-02 14:00:23 +010051 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
Dean Birche4cbc7c2020-01-20 10:40:21 +000052 - string:
53 name: 'MBEDCRYPTO_VERSION'
54 default: 'mbedcrypto-3.0.1'
55 - string:
56 name: 'MBEDCRYPTO_URL'
Karl Zhang2e1ab8e2020-06-28 15:27:37 +080057 default: 'https://git.trustedfirmware.org/mirror/mbed-crypto.git'
Dean Birche4cbc7c2020-01-20 10:40:21 +000058 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080059 name: 'MBEDTLS_VERSION'
60 default: 'mbedtls-2.23.0'
61 - string:
62 name: 'MBEDTLS_URL'
63 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
64 - string:
Tamas Banb9f28642020-06-19 12:16:44 +010065 name: 'MCUBOOT_VERSION'
66 default: 'v1.6.0'
67 - string:
68 name: 'MCUBOOT_URL'
Karl Zhangcee73552020-07-01 16:52:11 +080069 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Banb9f28642020-06-19 12:16:44 +010070 - string:
Kevin Pengc68398a2020-06-22 10:57:57 +080071 name: 'TFM_TESTS_URL'
72 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
73 - string:
74 name: 'TFM_TESTS_REFSPEC'
75 default: 'refs/heads/master'
76 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000077 name: 'CI_SCRIPTS_BRANCH'
78 default: 'master'
79 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