Skip to content
Snippets Groups Projects
Commit f878a722 authored by Lukas Köhler's avatar Lukas Köhler
Browse files

new pipeline

parent a89961cf
No related branches found
No related tags found
No related merge requests found
node {
stage('Copy files') {
sh(
'''
chmod -Rf 777 ./
rm -rf *
ls -la
cp -r "\$(find \$folder -maxdepth 1 -type d -not -path \$folder/__pycache__ -not -path \$folder)"/* ./
rm -rf \$folder
'''
)
}
stage('Build') {
sh(
'''
clang++ -std=c++11 -O0 -g -Wall -Wextra -Weverything -Wno-c++98-compat -o binary *.cpp
'''
)
}
stage('Collect warnings') {
warnings(
canComputeNew: false,
canResolveRelativePaths: false,
categoriesPattern: '',
consoleParsers: [[parserName: 'Clang (LLVM based)']],
defaultEncoding: '',
excludePattern: '',
healthy: '',
includePattern: '',
messagesPattern: '',
unHealthy: ''
)
}
stage('Run valgrind') {
runValgrind(
childSilentAfterFork: false,
excludePattern: '',
generateSuppressions: false,
ignoreExitCode: false,
includePattern: 'binary',
outputDirectory: '',
outputFileEnding: '.valgrindReport',
programOptions: '',
removeOldReports: false,
suppressionFiles: '',
tool: [$class : 'ValgrindToolMemcheck',
leakCheckLevel : 'full',
showReachable : true,
trackOrigins : true,
undefinedValueErrors: true],
traceChildren: false,
valgrindExecutable: '',
algrindOptions: '',
workingDirectory: ''
)
publishValgrind(
failBuildOnInvalidReports: false,
failBuildOnMissingReports: false,
failThresholdDefinitelyLost: '',
failThresholdInvalidReadWrite: '',
failThresholdTotal: '',
pattern: '*valgrindReport',
publishResultsForAbortedBuilds: false,
publishResultsForFailedBuilds: false,
sourceSubstitutionPaths: '',
unstableThresholdDefinitelyLost: '0',
unstableThresholdInvalidReadWrite: '0',
unstableThresholdTotal: '0'
)
}
stage('Pull and compile cppunit tests') {
git(
credentialsId: 'codegit',
url: 'https://code.fbi.h-da.de/SS18-REP-PAD2/UnitTests/Praktikum1.git'
)
sh('''
cmake ./
make
'''
)
}
stage('Run cppunit tests') {
sh('./cppunitTemplate')
xunit(
thresholds: [
skipped(failureThreshold: '0'),
failed(failureThreshold: '0')
],
tools: [CppUnit(
pattern: 'testResults.xml',
)]
)
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment