Skip to content
Snippets Groups Projects
Unverified Commit 181a4107 authored by Tom Fischer's avatar Tom Fischer Committed by GitHub
Browse files

Merge pull request #2944 from bilke/eve-tmpfs

[Jenkins] Eve tmpfs for build dir
parents 96afe3ff 0eea0708
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env groovy #!/usr/bin/env groovy
@Library('jenkins-pipeline@1.0.22') _ @Library('jenkins-pipeline@1.0.23') _
def stage_required = [build: false, full: false] def stage_required = [build: false, full: false]
def build_shared = 'ON' def build_shared = 'ON'
...@@ -278,6 +278,8 @@ pipeline { ...@@ -278,6 +278,8 @@ pipeline {
agent { label "frontend2"} agent { label "frontend2"}
environment { environment {
OMP_NUM_THREADS = '1' OMP_NUM_THREADS = '1'
SOURCE_DIR = "${env.WORKSPACE}"
BUILD_DIR = "/tmp/${env.BUILD_TAG}"
} }
steps { steps {
script { script {
...@@ -307,12 +309,6 @@ pipeline { ...@@ -307,12 +309,6 @@ pipeline {
} }
} }
post { post {
always {
xunit([
CTest(pattern: 'build/Testing/**/*.xml'),
GoogleTest(pattern: 'build/Tests/testrunner.xml')
])
}
success { success {
script { script {
if (env.JOB_NAME == 'ufz/ogs/master') { if (env.JOB_NAME == 'ufz/ogs/master') {
...@@ -324,6 +320,15 @@ pipeline { ...@@ -324,6 +320,15 @@ pipeline {
} }
} }
} }
always {
sh "mkdir _out && cp -r ${env.BUILD_DIR}/Testing _out/ && cp -r ${env.BUILD_DIR}/Tests/testrunner.xml _out/"
xunit([
CTest(pattern: "_out/Testing/**/*.xml"),
GoogleTest(pattern: "_out/testrunner.xml")
])
dir("${env.BUILD_DIR}") { deleteDir() }
dir('_out') { deleteDir() }
}
} }
} }
stage('Frontend2 (parallel)') { stage('Frontend2 (parallel)') {
...@@ -334,6 +339,8 @@ pipeline { ...@@ -334,6 +339,8 @@ pipeline {
agent { label "frontend2"} agent { label "frontend2"}
environment { environment {
OMP_NUM_THREADS = '1' OMP_NUM_THREADS = '1'
SOURCE_DIR = "${env.WORKSPACE}"
BUILD_DIR = "/tmp/${env.BUILD_TAG}-petsc"
} }
steps { steps {
script { script {
...@@ -363,12 +370,6 @@ pipeline { ...@@ -363,12 +370,6 @@ pipeline {
} }
} }
post { post {
always {
xunit([
CTest(pattern: 'build/Testing/**/*.xml'),
GoogleTest(pattern: 'build/Tests/testrunner.xml')
])
}
success { success {
script { script {
if (env.JOB_NAME == 'ufz/ogs/master') { if (env.JOB_NAME == 'ufz/ogs/master') {
...@@ -380,6 +381,15 @@ pipeline { ...@@ -380,6 +381,15 @@ pipeline {
} }
} }
} }
always {
sh "mkdir _out && cp -r ${env.BUILD_DIR}/Testing _out/ && cp -r ${env.BUILD_DIR}/Tests/testrunner.xml _out/"
xunit([
CTest(pattern: "_out/Testing/**/*.xml"),
GoogleTest(pattern: "_out/testrunner.xml")
])
dir("${env.BUILD_DIR}") { deleteDir() }
dir('_out') { deleteDir() }
}
} }
} }
// ************************** Windows ********************************** // ************************** Windows **********************************
......
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