Jenkinsfile: copy lines from authentic2 (#86367)
gitea/authentic2-wallonie-connect/pipeline/head There was a failure building this commit Details

This commit is contained in:
Benjamin Dauvergne 2024-01-31 11:23:23 +01:00
parent 6131b19e5a
commit e004f4cdfa
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -11,8 +11,8 @@ pipeline {
steps {
sh "mkdir -p ${env.TMPDIR}"
sh """
virtualenv -p python3 ${env.TMPDIR}/venv/
${env.TMPDIR}/venv/bin/pip install "tox<4" "virtualenv<=20.0.5" "importlib-resources<=1.0.2"
python3 -m venv ${env.TMPDIR}/venv/
${env.TMPDIR}/venv/bin/pip install "tox"
PGPORT=`python3 -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 {