mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
[jenkins] try setting ansiColor as a build property
This commit is contained in:
parent
ab32b3fb51
commit
2a9b29741e
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -17,7 +17,8 @@ properties([
|
||||
threshold: 'SUCCESS',
|
||||
upstreamProjects: triqsProject
|
||||
)
|
||||
] : [])
|
||||
] : []),
|
||||
ansiColor('xterm')
|
||||
])
|
||||
|
||||
/* map of all builds to run, populated below */
|
||||
@ -30,7 +31,7 @@ def dockerPlatforms = ["ubuntu-clang", "ubuntu-gcc", "centos-gcc"]
|
||||
for (int i = 0; i < dockerPlatforms.size(); i++) {
|
||||
def platform = dockerPlatforms[i]
|
||||
platforms[platform] = { -> node('docker') {
|
||||
stage(platform) { timeout(time: 1, unit: 'HOURS') { ansiColor('xterm') {
|
||||
stage(platform) { timeout(time: 1, unit: 'HOURS') {
|
||||
checkout scm
|
||||
/* construct a Dockerfile for this base */
|
||||
sh """
|
||||
@ -47,7 +48,7 @@ for (int i = 0; i < dockerPlatforms.size(); i++) {
|
||||
if (!keepInstall) {
|
||||
sh "docker rmi --no-prune ${img.imageName()}"
|
||||
}
|
||||
} } }
|
||||
} }
|
||||
} }
|
||||
}
|
||||
|
||||
@ -60,7 +61,7 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
|
||||
def platformEnv = osxPlatforms[i]
|
||||
def platform = platformEnv[0]
|
||||
platforms["osx-$platform"] = { -> node('osx && triqs') {
|
||||
stage("osx-$platform") { timeout(time: 1, unit: 'HOURS') { ansiColor('xterm') {
|
||||
stage("osx-$platform") { timeout(time: 1, unit: 'HOURS') {
|
||||
def srcDir = pwd()
|
||||
def tmpDir = pwd(tmp:true)
|
||||
def buildDir = "$tmpDir/build"
|
||||
@ -97,7 +98,7 @@ for (int i = 0; i < osxPlatforms.size(); i++) {
|
||||
} }
|
||||
sh "make install"
|
||||
} }
|
||||
} } }
|
||||
} }
|
||||
} }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user