CI: Make HOME environment hack less intrusive

This commit is contained in:
Tobias Gruetzmacher 2022-05-24 23:24:01 +02:00
parent 4a45270b65
commit 6415572f3d

27
Jenkinsfile vendored
View file

@ -27,20 +27,21 @@ pys.each { py ->
def image = docker.image('docker.io/python:' + py.docker) def image = docker.image('docker.io/python:' + py.docker)
image.pull() image.pull()
image.inside { image.inside {
withEnv(['HOME=' + pwd(tmp: true)]) { def tmpDir = pwd(tmp: true)
warnError('tox failed') { warnError('tox failed') {
sh """ sh """
pip install --no-warn-script-location tox HOME='$tmpDir'
python -m tox -e $py.tox pip install --no-warn-script-location tox
""" python -m tox -e $py.tox
} """
}
if (py.main) { if (py.main) {
sh """ sh """
pip install --no-warn-script-location build HOME='$tmpDir'
python -m build pip install --no-warn-script-location build
""" python -m build
} """
} }
} }