Skip to content

Commit def98db

Browse files
committed
call build.ps1 docker-init in Jenkinsfile
1 parent 0c86208 commit def98db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ def parallelStages = [failFast: false]
6464
node(resolvedAgentLabel) {
6565
timeout(time: 60, unit: 'MINUTES') {
6666
checkout scm
67-
if (imageType == "linux") {
68-
stage('Prepare Docker') {
67+
stage('Prepare Docker') {
68+
if (isUnix()) {
6969
sh 'make docker-init'
70+
} else {
71+
powershell '& ./build.ps1 docker-init'
7072
}
7173
}
7274
// This function is defined in the jenkins-infra/pipeline-library

0 commit comments

Comments
 (0)