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

pipeline testing

parent 5577cb53
Branches
Tags
No related merge requests found
node { node {
stage('Copy files') { stage('Copy files') {
sh(
'''
ls -la
'''
)
sh( sh(
''' '''
chmod -Rf 777 ./ chmod -Rf 777 ./
...@@ -9,15 +14,35 @@ node { ...@@ -9,15 +14,35 @@ node {
rm -rf \$folder rm -rf \$folder
''' '''
) )
sh(
'''
ls -la
'''
)
} }
stage('Build') { stage('Build') {
sh(
'''
ls -la
'''
)
sh( sh(
''' '''
clang++ -std=c++11 -O0 -g -Wall -Wextra -Weverything -Wno-c++98-compat -o binary *.cpp clang++ -std=c++11 -O0 -g -Wall -Wextra -Weverything -Wno-c++98-compat -o binary *.cpp
''' '''
) )
sh(
'''
ls -la
'''
)
} }
stage('Collect warnings') { stage('Collect warnings') {
sh(
'''
ls -la
'''
)
warnings( warnings(
canComputeNew: false, canComputeNew: false,
canResolveRelativePaths: false, canResolveRelativePaths: false,
...@@ -32,6 +57,11 @@ node { ...@@ -32,6 +57,11 @@ node {
) )
} }
stage('Run valgrind') { stage('Run valgrind') {
sh(
'''
ls -la
'''
)
runValgrind( runValgrind(
childSilentAfterFork: false, childSilentAfterFork: false,
excludePattern: '', excludePattern: '',
...@@ -67,17 +97,37 @@ node { ...@@ -67,17 +97,37 @@ node {
unstableThresholdInvalidReadWrite: '0', unstableThresholdInvalidReadWrite: '0',
unstableThresholdTotal: '0' unstableThresholdTotal: '0'
) )
sh(
'''
ls -la
'''
)
} }
stage('Pull and compile cppunit tests') { stage('Pull and compile cppunit tests') {
sh(
'''
ls -la
'''
)
git( git(
credentialsId: 'codegit', credentialsId: 'codegit',
url: 'https://code.fbi.h-da.de/SS18-REP-PAD2/UnitTests/Praktikum2.git' url: 'https://code.fbi.h-da.de/SS18-REP-PAD2/UnitTests/Praktikum2.git'
) )
sh(
'''
ls -la
'''
)
sh(''' sh('''
cmake ./ cmake ./
make make
''' '''
) )
sh(
'''
ls -la
'''
)
} }
stage('Run cppunit tests') { stage('Run cppunit tests') {
sh('./cppunitTemplate') sh('./cppunitTemplate')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment