| #------------------------------------------------------------------------------- |
| # Copyright (c) 2020, Arm Limited. All rights reserved. |
| # |
| # SPDX-License-Identifier: BSD-3-Clause |
| # |
| #------------------------------------------------------------------------------- |
| |
| - job: |
| name: tf-m-cppcheck |
| description: 'Runs cppcheck over the source (tree or patch).' |
| project-type: pipeline |
| disabled: false |
| sandbox: true |
| concurrent: true |
| properties: |
| - build-discarder: |
| days-to-keep: 15 |
| num-to-keep: 45 |
| - authorization: |
| anonymous: |
| - job-read |
| - job-extended-read |
| parameters: |
| - string: |
| name: 'GERRIT_HOST' |
| description: | |
| For use when triggering with unmerged Gerrit changes. |
| - string: |
| name: 'GERRIT_REFSPEC' |
| default: '+refs/heads/*:refs/remotes/origin/*' |
| description: | |
| For use when triggering with unmerged Gerrit changes. |
| - string: |
| name: 'GERRIT_BRANCH' |
| default: 'master' |
| description: | |
| For use when triggering with unmerged Gerrit changes. |
| - string: |
| name: 'GERRIT_CHANGE_NUMBER' |
| description: | |
| For use when triggering with unmerged Gerrit changes. |
| - string: |
| name: 'GERRIT_PATCHSET_REVISION' |
| description: | |
| For use when triggering with unmerged Gerrit changes. |
| - string: |
| name: 'CODE_REPO' |
| default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| - string: |
| name: 'CI_SCRIPTS_REPO' |
| default: 'https://review.trustedfirmware.org/ci/tf-m-ci-scripts' |
| - string: |
| name: 'CI_SCRIPTS_BRANCH' |
| default: 'master' |
| - string: |
| name: 'MBEDTLS_VERSION' |
| default: 'mbedtls-2.24.0' |
| - string: |
| name: 'MBEDTLS_URL' |
| default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| - string: |
| name: 'MCUBOOT_REFSPEC' |
| default: 'refs/tags/1.7.0-rc1' |
| description: | |
| Specify which MCUboot version to use |
| refs/heads/master : Pick up latest master |
| refs/tags/<TAG_NAME> : Pick up a tagged version |
| - string: |
| name: 'MCUBOOT_URL' |
| default: 'https://git.trustedfirmware.org/mirror/mcuboot.git' |
| - string: |
| name: 'TFM_TESTS_URL' |
| default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git' |
| - string: |
| name: 'TFM_TESTS_REFSPEC' |
| default: 'refs/heads/master' |
| pipeline-scm: |
| scm: |
| - git: |
| url: '$CI_SCRIPTS_REPO' |
| branches: |
| - '$CI_SCRIPTS_BRANCH' |
| credentials-id: GIT_SSH_KEY |
| wipe-workspace: false |
| script-path: jenkins/cppcheck.jpl |