diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 7be2d0aec..5d18fc0c1 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -56,10 +56,8 @@ pipeline { deleteDir() unstash 'source' script { - docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){ - dir("${BASE_DIR}"){ - preCommit(commit: "${GIT_BASE_COMMIT}", junit: true) - } + dir(BASE_DIR){ + preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, dockerImage: 'python:3.7-stretch') } } } diff --git a/.ci/linting.groovy b/.ci/linting.groovy index 270f9e75a..4efe668c7 100644 --- a/.ci/linting.groovy +++ b/.ci/linting.groovy @@ -25,9 +25,7 @@ pipeline { steps { script { def sha = getGitCommitSha() - docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){ - preCommit(commit: "${sha}", junit: true) - } + preCommit(commit: "${sha}", junit: true, dockerImage: 'python:3.7-stretch') } } }