Jenkins: Don't use system tox
In some cases it may pick up the system Python version instead of the "local" Python version, which leads to pip install errors.
This commit is contained in:
parent
912b30191d
commit
b89687f6d7
1 changed files with 1 additions and 2 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -77,10 +77,9 @@ timestamps {
|
|||
|
||||
def buildDockerfile(image) {
|
||||
def uid = sh(returnStdout: true, script: 'id -u').trim()
|
||||
def toxInst = 'apt-get update && apt-get -y install tox'
|
||||
writeFile file: 'Dockerfile', text: """
|
||||
FROM $image
|
||||
RUN $toxInst
|
||||
RUN pip install tox
|
||||
RUN useradd -mu $uid dockerjenkins
|
||||
"""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue