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:
Tobias Gruetzmacher 2020-08-19 11:05:36 +02:00
parent 912b30191d
commit b89687f6d7

3
Jenkinsfile vendored
View file

@ -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
"""
}