CI: Make HOME environment hack less intrusive
This commit is contained in:
parent
4a45270b65
commit
6415572f3d
1 changed files with 14 additions and 13 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -27,9 +27,10 @@ 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 """
|
||||||
|
HOME='$tmpDir'
|
||||||
pip install --no-warn-script-location tox
|
pip install --no-warn-script-location tox
|
||||||
python -m tox -e $py.tox
|
python -m tox -e $py.tox
|
||||||
"""
|
"""
|
||||||
|
@ -37,12 +38,12 @@ pys.each { py ->
|
||||||
|
|
||||||
if (py.main) {
|
if (py.main) {
|
||||||
sh """
|
sh """
|
||||||
|
HOME='$tmpDir'
|
||||||
pip install --no-warn-script-location build
|
pip install --no-warn-script-location build
|
||||||
python -m build
|
python -m build
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (py.main) {
|
if (py.main) {
|
||||||
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
||||||
|
|
Loading…
Reference in a new issue