2021-07-29 12:06:14 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build Container') {
|
|
|
|
when {
|
|
|
|
changeset "automation/Dockerfile-q7s"
|
2021-07-29 12:20:02 +02:00
|
|
|
branch 'develop'
|
2021-07-29 12:06:14 +02:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'docker build -t eive-fsw-build-q7s:gcc8 - < automation/Dockerfile-q7s'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Clean') {
|
|
|
|
when {
|
2021-07-29 12:14:37 +02:00
|
|
|
anyOf {
|
2021-07-29 12:06:14 +02:00
|
|
|
changelog 'cleanCI'
|
|
|
|
changeset '*.cmake'
|
|
|
|
changeset 'CMakeLists.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf build-q7s-debug'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Q7S') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'eive-fsw-build-q7s:gcc8'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
dir('build-q7s-debug') {
|
|
|
|
sh 'cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFSFW_OSAL=linux ..'
|
|
|
|
sh 'cmake --build . -j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
when {
|
|
|
|
tag 'v*.*.*'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'echo Deploying'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|