Skip to content

Commit 1e0f26e

Browse files
authored
ci(jenkins): delegate docker setup to the preCommit step (#558)
1 parent b4fc446 commit 1e0f26e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Jenkinsfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ pipeline {
7070
deleteDir()
7171
unstash 'source'
7272
script {
73-
docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){
74-
dir("${BASE_DIR}"){
75-
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true)
76-
}
73+
dir(BASE_DIR){
74+
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, dockerImage: 'python:3.7-stretch')
7775
}
7876
}
7977
}

0 commit comments

Comments
 (0)