blob: 13176b0dba112d60507c440b17c65ad41d73781a [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
David Vincze16a9dac2023-01-06 15:16:47 +01002# Copyright (c) 2020-2023, 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
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'
Xinyu Zhangcff9eaa2020-12-11 14:51:34 +080026 default: 'refs/heads/master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000027 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:
Fathi Boudraccaba542020-11-19 10:11:43 +010043 name: 'CODE_REPO'
44 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
45 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000046 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030047 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000048 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010049 name: 'CI_SCRIPTS_BRANCH'
50 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000051 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080052 name: 'MBEDTLS_VERSION'
Antonio de Angelis20c04402022-07-16 00:01:05 +010053 default: 'mbedtls-3.2.1'
Karl Zhang85c2d7a2020-08-20 11:17:58 +080054 - string:
55 name: 'MBEDTLS_URL'
56 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
57 - string:
Tamas Ban29d6e442020-09-16 13:42:51 +010058 name: 'MCUBOOT_REFSPEC'
Sherry Zhang10ffcca2022-03-03 11:38:23 +080059 default: 'v1.9.0'
Tamas Ban424f8ce2020-10-06 12:06:04 +010060 description: |
61 Specify which MCUboot version to use
62 refs/heads/master : Pick up latest master
63 refs/tags/<TAG_NAME> : Pick up a tagged version
Tamas Banb9f28642020-06-19 12:16:44 +010064 - string:
65 name: 'MCUBOOT_URL'
Karl Zhangcee73552020-07-01 16:52:11 +080066 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
Tamas Banb9f28642020-06-19 12:16:44 +010067 - string:
Kevin Pengc68398a2020-06-22 10:57:57 +080068 name: 'TFM_TESTS_URL'
69 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
70 - string:
71 name: 'TFM_TESTS_REFSPEC'
72 default: 'refs/heads/master'
Leonardo Sandoval4a024212021-09-17 14:05:27 -050073 - string:
Xinyu Zhang79e1aa12022-11-23 17:50:21 +080074 name: 'QCBOR_URL'
75 default: 'https://github.com/laurencelundblade/QCBOR.git'
76 - string:
77 name: 'QCBOR_VERSION'
David Vincze16a9dac2023-01-06 15:16:47 +010078 default: '92d3f89030baff4af7be8396c563e6c8ef263622'
Xinyu Zhang79e1aa12022-11-23 17:50:21 +080079 - string:
Leonardo Sandoval4a024212021-09-17 14:05:27 -050080 name: SHARE_FOLDER
81 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
82 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang59f7fee2021-05-21 14:04:11 +080083 wrappers:
84 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +000085 pipeline-scm:
86 scm:
87 - git:
88 url: '$CI_SCRIPTS_REPO'
89 branches:
90 - '$CI_SCRIPTS_BRANCH'
91 credentials-id: GIT_SSH_KEY
92 wipe-workspace: false
93 script-path: jenkins/cppcheck.jpl