jenkins: create parent directory if necessary

This commit is contained in:
Frédéric Péters 2020-10-12 09:44:41 +02:00
parent 7b130d6ffc
commit 5f7ae0e000
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -10,7 +10,7 @@ pipeline {
stage('Unit Tests (production environment)') {
when { not { triggeredBy 'TimerTrigger' } }
steps {
sh "mkdir ${env.TMPDIR}"
sh "mkdir -p ${env.TMPDIR}"
sh """
python3 -m venv ${env.TMPDIR}/venv/
${env.TMPDIR}/venv/bin/pip install tox
@ -31,7 +31,7 @@ PGPORT=`python -c 'import struct; import socket; s=socket.socket(); s.setsockopt
stage('Unit Tests (full)') {
when { triggeredBy 'TimerTrigger' }
steps {
sh "mkdir ${env.TMPDIR}"
sh "mkdir -p ${env.TMPDIR}"
sh """
virtualenv -p python3 ${env.TMPDIR}/venv/
${env.TMPDIR}/venv/bin/pip install tox