Jenkinsfile: use python3-venv

This commit is contained in:
Benjamin Dauvergne 2020-08-31 13:46:38 +02:00
parent f5e80897dc
commit f6ebcadc0a
1 changed files with 4 additions and 1 deletions

5
Jenkinsfile vendored
View File

@ -15,7 +15,10 @@ pipeline {
cleanWs()
dir ("repository") {
checkout scm
tox()
sh """
python3 -m venv ${env.TMPDIR}/venv/
${env.TMPDIR}/venv/bin/pip install tox
PGPORT=`python -c 'import struct; import socket; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack("ii", 1, 0)); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` pg_virtualenv -o fsync=off ${env.TMPDIR}/venv/bin/tox -r"""
}
}
post {