blob: 143b1cb2ff7d2147a94e91030db360caf227b3c2 [file] [log] [blame]
Benjamin Copeland83414172020-07-28 11:58:16 +01001#-------------------------------------------------------------------------------
Xinyu Zhang44a110c2023-01-30 10:50:10 +01002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Benjamin Copeland83414172020-07-28 11:58:16 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-cppcheck
Fathi Boudra593e0e32020-11-05 16:31:51 +010010 description: 'Staging - Runs cppcheck over the source (tree or patch).'
Benjamin Copeland83414172020-07-28 11:58:16 +010011 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
15 properties:
16 - build-discarder:
Xinyu Zhang7d4feea2022-09-14 13:37:23 +080017 days-to-keep: 5
Benjamin Copeland83414172020-07-28 11:58:16 +010018 num-to-keep: 45
Benjamin Copeland83414172020-07-28 11:58:16 +010019 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 Zhang26437432023-09-25 11:50:23 +080026 default: 'refs/heads/main'
Benjamin Copeland83414172020-07-28 11:58:16 +010027 description: |
28 For use when triggering with unmerged Gerrit changes.
29 - string:
30 name: 'GERRIT_BRANCH'
Xinyu Zhang26437432023-09-25 11:50:23 +080031 default: 'main'
Benjamin Copeland83414172020-07-28 11:58:16 +010032 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 Boudrab674f1c2020-11-06 21:37:44 +010043 name: 'CODE_REPO'
44 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
45 - string:
Benjamin Copeland83414172020-07-28 11:58:16 +010046 name: 'CI_SCRIPTS_REPO'
Fathi Boudra1bfa4442020-11-05 12:46:37 +010047 default: 'https://review.trustedfirmware.org/next/ci/tf-m-ci-scripts'
Benjamin Copeland83414172020-07-28 11:58:16 +010048 - string:
Fathi Boudrab674f1c2020-11-06 21:37:44 +010049 name: 'CI_SCRIPTS_BRANCH'
Xinyu Zhangd0c4e912022-01-20 15:50:23 +080050 default: 'master'
Benjamin Copeland83414172020-07-28 11:58:16 +010051 - string:
Fathi Boudrac6c56ea2020-11-05 11:58:08 +010052 name: 'MBEDTLS_VERSION'
Xinyu Zhang26437432023-09-25 11:50:23 +080053 default: ''
Benjamin Copeland83414172020-07-28 11:58:16 +010054 - string:
Fathi Boudrac6c56ea2020-11-05 11:58:08 +010055 name: 'MBEDTLS_URL'
56 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
Benjamin Copeland83414172020-07-28 11:58:16 +010057 - string:
Fathi Boudrac6c56ea2020-11-05 11:58:08 +010058 name: 'MCUBOOT_REFSPEC'
Xinyu Zhang26437432023-09-25 11:50:23 +080059 default: ''
Fathi Boudrac6c56ea2020-11-05 11:58:08 +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
64 - string:
65 name: 'MCUBOOT_URL'
66 default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
67 - string:
68 name: 'TFM_TESTS_URL'
69 default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
70 - string:
71 name: 'TFM_TESTS_REFSPEC'
Xinyu Zhang26437432023-09-25 11:50:23 +080072 default: ''
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050073 - string:
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010074 name: 'QCBOR_URL'
75 default: 'https://github.com/laurencelundblade/QCBOR.git'
76 - string:
77 name: 'QCBOR_VERSION'
Xinyu Zhang26437432023-09-25 11:50:23 +080078 default: ''
Xinyu Zhang1a6ab202022-12-09 07:46:20 +010079 - string:
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050080 name: SHARE_FOLDER
Xinyu Zhanged109d92023-10-24 10:52:50 +080081 default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
Leonardo Sandoval3208aea2021-09-17 14:05:27 -050082 description: 'Folder containing shared repositories for downstream pipeline jobs'
Xinyu Zhang33881cc2021-05-21 14:04:11 +080083 wrappers:
84 - timestamps
Benjamin Copeland83414172020-07-28 11:58:16 +010085 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