Jenkinsfile: use a TMPDIR for tox (#31437)

This commit is contained in:
Benjamin Dauvergne 2019-03-14 20:40:20 +01:00
parent 6964b0cc82
commit d361088985
2 changed files with 6 additions and 1 deletions

5
Jenkinsfile vendored
View File

@ -3,9 +3,13 @@
pipeline {
agent any
options { disableConcurrentBuilds() }
environment {
TMPDIR = "/tmp/$BUILD_TAG"
}
stages {
stage('Unit Tests') {
steps {
sh "mkdir ${env.TMPDIR}"
sh './jenkins.sh'
}
post {
@ -35,6 +39,7 @@ pipeline {
}
post {
always {
sh "rm -rf ${env.TMPDIR}"
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+jenkins-authentic@entrouvert.com')

View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic/{env:BRANCH_NAME:}
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic/
envlist = py27-coverage-{dj18,dj111}-authentic-{pg,sqlite}-{oldldap,},py27-coverage-{dj18,dj111}-rbac-{pg,sqlite}
[testenv]