Skip to content
Snippets Groups Projects
Commit a12598ed authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Added docker-based Conan job.

parent 114e4c79
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,13 @@ builders['gcc'] = {
}
}
builders['gcc-conan'] = {
node('docker') {
dir('ogs') { checkout scm }
load 'ogs/scripts/jenkins/gcc-conan.groovy'
}
}
builders['gcc-dynamic'] = {
node('envinf1') {
dir('ogs') { checkout scm }
......
def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache ' +
'-v /home/jenkins/conan-data:/root/.conan/data'
def defaultCMakeOptions =
'-DCMAKE_BUILD_TYPE=Release ' +
'-DOGS_LIB_BOOST=System ' +
'-DOGS_LIB_VTK=System '
def guiCMakeOptions =
'-DOGS_BUILD_CLI=OFF ' +
'-DOGS_BUILD_GUI=ON ' +
'-DOGS_BUILD_UTILS=ON ' +
'-DOGS_BUILD_TESTS=OFF ' +
'-DOGS_BUILD_METIS=ON '
def configure = new ogs.configure()
def build = new ogs.build()
def post = new ogs.post()
def helper = new ogs.helper()
def image = docker.image('ogs6/gcc-conan')
image.pull()
image.inside(defaultDockerArgs) {
stage('Configure (Linux-Docker)') {
configure.linux(
cmakeOptions: defaultCMakeOptions,
script: this,
useConan: true
)
}
stage('CLI (Linux-Docker)') {
build.linux(script: this)
}
stage('Test (Linux-Docker)') {
build.linux(script: this, target: 'tests ctest')
}
stage('Data Explorer (Linux-Docker)') {
configure.linux(
cmakeOptions: defaultCMakeOptions + guiCMakeOptions,
keepDir: true,
script: this,
useConan: true
)
build.linux(script: this)
}
}
stage('Archive (Linux-Docker)') {
archiveArtifacts 'build/*.tar.gz'
}
stage('Post (Linux-Docker)') {
post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml',
'ogs/scripts/jenkins/clang-log-parser.rules'
post.cleanup()
}
......@@ -41,10 +41,6 @@ image.inside(defaultDockerArgs) {
}
}
stage('Archive (Linux-Docker)') {
archiveArtifacts 'build/*.tar.gz'
}
stage('Post (Linux-Docker)') {
post.publishTestReports 'build/Testing/**/*.xml', 'build/Tests/testrunner.xml',
'ogs/scripts/jenkins/clang-log-parser.rules'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment