firmware_tools/staticanalysis/cppcheck.groovy
Dan Hawkins fee22b0f45 Squashed 'autobuild/Common_scripts/' changes from e5d1235..80d9106
80d9106 Correction after subtree pull
24023d8 Merge commit '1a015978c4bd5b52339eb00ecbe33645d7869ce4'
41ec5e4 Release_to_git: Handle the case where the URI to the source repo associated with a subsystem and product name has changed
a97a129 Merge commit '8720092cf2e616db830dc470071ca868c556184e'
be93f03 Handle path exclusions
edb4451 Handle path exclusions
21bc371 Handle path exclusions
0114f4e Handle path exclusions
df2bd2f Handle path exclusions
0514270 Handle path exclusions
562c1cb Handle path exclusions
29cfbbf Handle path exclusions
7a590ec Handle path exclusions
35018f9 Handle path exclusions
0890fb0 Handle path exclusions
ec496bb Handle path exclusions
9c9e099 Handle path exclusions
c82bbc6 Handle path exclusions
d75fd3c Handle path exclusions
7aa4e92 Handle path exclusions
1d18f76 Handle path exclusions
4ec0d0e Handle path exclusions
caf5ddb Handle path exclusions
ea7faf5 Show environment
7da9f89 Include kernel zImage in app package
46b2927 Include kernel zImage in app package
67f5113 Update static analysis
efc258d Update static analysis
d8d59ba Update static analysis
c6ea368 Add an exclude list
1cc691e Add an exclude list
f0959d3 Add an exclude list
a4b3834 Merge commit '7fad74b80fae1f64778569fa436702e9b92b73a2' into master
bde1198 Add doxygen deployment script
b1262ef Add doxygen deployment script
c473cfb Add doxygen deployment script
1e9b5af Add doxygen deployment script
fcd0133 Add doxygen deployment script
8fd7cda Add doxygen deployment script
226ac59 Add doxygen deployment script
2ae9dfc Add doxygen deployment script
6daa1d6 Add doxygen deployment script
8477a50 Add doxygen deployment script
748d9f7 Add doxygen deployment script
e4086c3 Add doxygen deployment script
9c81da3 Add doxygen deployment script
bbbd7b6 Add doxygen deployment script
caf62da Add doxygen deployment script
906714a Add doxygen deployment script
6fa1bda Add doxygen deployment script
95f1278 Add doxygen deployment script
d5ad9c7 Increase time to do project importing before timeout
fc080ad Merge commit 'b9124c312613b4c9bccced8565a1ef8f063955ac'
b711e3b Merge commit '8e604b9a4c30ad6800c58c661255a64708a1d3e5'
50cb58a CORE-52 - Adding additional resources for controlling remote upgrades - debug
5e9689a Handle version regex properly
eb1357f Merge commit '0bb00efe55922f00037f664e781377a7c9569448'
5559b50 Remove redundant parameter
b77403c Remove redundant parameter
a7b13a4 Merge commit 'c5b888f5082790fd9f4247aa2ddc84df43b4dc7d'
7515aad Debug why prompting publish is not filtering
84eb2c5 Add parameter to do nested copies
869f9d8 Add parameter to do nested copies
bdd7282 Add parameter to do nested copies
d147e91 CORE-58 added cygwin_folder env variable, removed check for binary file
0afffb4 Merge commit '9c69d262a6df9ab41e9ab02d2c9a552d5fa31369'
a5cfe14 Clean folders before importing by default
bb3a79b Correct import filter
e0f0ea2 Correct import flattenning
e8258c9 Correct import flattenning
b131bc7 Correct import flattenning
9698d24 Cleanws stash is not saving .git folder
0e9186f Correct workspace clean when autobuild scripts in a custom position
bfa4843 Correct workspace clean when autobuild scripts in a custom position
7120ea5 Add flatten option to job artifact option
54c91b3 Merge commit '9db0cfef8728f1a64f3ad482b4ace56c325274ba'
2d53c17 GIS-7336 - Bring in FX3 into PS pipeline
d7182ae GIS-7336 - Bring in FX3 into PS pipeline
de89ba9 GIS-7336 - Bring in FX3 into PS pipeline
b68652a GIS-7336 - Bring in FX3 into PS pipeline
ef343d4 GIS-7336 - Bring in FX3 into PS pipeline
2530250 Start converting autobuild for fx3
dc35fbb Adding files for autobuild
0ed820e Merge commit 'd5e639e226a82dce0aa6a03e4a56f619069c6443'
9030623 Merge commit '2e7e846bcd3fdd1e2ce478e01c36d361cd4f0e06'
a1c1d1b Merge commit 'f893e28c64098992e03655d792db9e5484465e5c'
0a99ec6 Merge commit '00267c6f051d20f516d4786f24eda39b75899e8d'
701621a Remove @Grab command as it is causing the ftpclient jobs to explode
c017cd2 Omit BASEBUILDNUMBER so it defaults to 0
0746e12 Merge commit '237bd3d7380719d6228e50eb2e791875a69fb416'
9f00d34 Stop using deprecated API
ed33b6d Merge commit '1c2a190b29d4e6144d6caf45d368325ae6cdb15f'
25496a4 Remove redundant parameter; Use latest api

git-subtree-dir: autobuild/Common_scripts
git-subtree-split: 80d9106f41
2020-11-09 08:15:16 +00:00

113 lines
3.9 KiB
Groovy

pipeline {
agent { label "${AGENT_LABEL}" }
stages {
stage('Initial setup') {
steps {
script {
meta = load("${WORKSPACE}/autobuild/Common_scripts/autobuilder.groovy").startnonbuild(this)
}
}
}
stage('Checkout dependencies') {
steps {
script {
configurationhelper = autobuilder.configurationhelper()
PYTHONURL = 'git@hydra:tools/python.git'
PYTHONBRANCH = 'origin/3.6.3_windows'
PYTHONDIR = "${WORKSPACE}/python"
configurationhelper.gitCheckoutAndRegister(meta, 'python', PYTHONURL, PYTHONBRANCH, PYTHONDIR)
env.PYTHON = "${PYTHONDIR}/ver/python.exe"
}
}
}
stage('Checkout source') {
steps {
script {
SOURCEREVISION = "${SOURCE_REVISION}"
SOURCEDIR = "${WORKSPACE}/source"
configurationhelper.gitCheckoutAndRegister(meta, 'source', SOURCEURL, SOURCEREVISION, SOURCEDIR, '', 0, false)
SOURCE_PATH = "${SOURCEDIR}"
env.SRC = "${SOURCE_PATH}/${SOURCE_OFFSET_PATH}"
}
}
}
stage("Clean exports") {
steps {
script {
STATICANALYSIS = 'staticanalysis'
cleanfolders = [
STATICANALYSIS,
]
cleaner = load("${autobuilder.commonscripts()}/clean/clean.groovy")
cleaner.clean(cleanfolders)
}
}
}
stage('Generating version info') {
steps {
script {
version = load("${autobuilder.commonscripts()}/versionnumbering/generate.groovy")
version.generate(meta, SOURCE_REVISION, SOURCE_PATH)
}
}
}
stage('Static analysis') {
steps {
script {
def CPPCHECKFOLDER = "${STATICANALYSIS}/cppcheck"
dir(CPPCHECKFOLDER) {
echo "Executing: ${CPPCHECK} --xml --xml-version=2 ${SRC} 2> cppcheck.xml"
if (isUnix()) {
sh """#!/bin/bash
set -e
"${CPPCHECK}" --xml --xml-version=2 "${SRC}" 2> cppcheck.xml
"""
} else {
bat """
"${CPPCHECK}" --xml --xml-version=2 "${SRC}" 2> cppcheck.xml
"""
}
}
recordIssues(tools: [
cppCheck(pattern: "**/cppcheck.xml", reportEncoding: 'UTF-8'),
])
}
}
}
stage('Classifying publishable artifacts') {
steps {
script {
def publishable = [
]
publishutils = load("${autobuilder.commonscripts()}/publishing/utils.groovy")
publishutils.generatelist(meta, publishable)
}
}
}
stage('Archiving artifacts') {
steps {
script {
ArrayList<String> itemsForRelease = ["${STATICANALYSIS}/**"]
def artifactlist = meta.generateartifacts(itemsForRelease)
archiveArtifacts "${artifactlist}"
}
}
}
}
post {
always {
echo 'Post-build'
}
failure {
echo 'Failed build'
}
unstable {
echo 'Unstable build'
}
success {
echo 'Succeeded build'
}
}
}