Commit ff27b948 authored by Samir Halilcevic's avatar Samir Halilcevic

Add echo commands

parent 233318dd
...@@ -167,17 +167,24 @@ pipeline { ...@@ -167,17 +167,24 @@ pipeline {
getSources(config) getSources(config)
} }
} }
stage('Build') {
steps {
buildParallel(config)
}
}
stage('Autobahn Testsuite') { stage('Autobahn Testsuite') {
steps { steps {
node(docker) { node(docker) {
steps { steps {
script { script {
echo "Starting autobahn docker"
def baseDir = pwd() def baseDir = pwd()
def sourceDir = "$baseDir/sources" def sourceDir = "$baseDir/sources"
def buildDir = "$baseDir/build" def buildDir = "$baseDir/build"
def installDir = "$baseDir/autobahn" def installDir = "$baseDir/autobahn"
def initFile = "$baseDir/init.cmake" def initFile = "$baseDir/init.cmake"
def init = new StringBuilder() def init = new StringBuilder()
echo "Writing file"
writeFile([ writeFile([
file: 'init.cmake', file: 'init.cmake',
text: """ text: """
...@@ -191,11 +198,14 @@ pipeline { ...@@ -191,11 +198,14 @@ pipeline {
set(CMAKE_BUILD_TYPE "release" CACHE STRING "") set(CMAKE_BUILD_TYPE "release" CACHE STRING "")
""" """
]) ])
echo "start docker"
def image = docker.build('autobahn-testsuite', "sources/.ci/autobahn-testsuite") def image = docker.build('autobahn-testsuite', "sources/.ci/autobahn-testsuite")
image.inside("--cap-add SYS_PTRACE") { image.inside("--cap-add SYS_PTRACE") {
echo "start build"
sh "./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'" sh "./sources/.ci/run.sh build '$initFile' '$sourceDir' '$buildDir'"
warnError('Unit Tests failed!') { warnError('Unit Tests failed!') {
sh "./sources/.ci/autobahn-testsuite/run.sh" echo "start build"
sh "./sources/.ci/autobahn-testsuite/run.sh $buildDir"
writeFile file: "build-autobahn.success", text: "success\n" writeFile file: "build-autobahn.success", text: "success\n"
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment