diff --git a/Jenkinsfile b/Jenkinsfile index fc7f6a9..aedf53c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,8 +11,8 @@ pipeline { steps { sh "mkdir ${env.TMPDIR}" sh """ -virtualenv -p python3 ${env.TMPDIR}/venv/ -${env.TMPDIR}/venv/bin/pip install tox "virtualenv<=20.0.5" "importlib-resources<=1.0.2" +/usr/bin/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 {