Skip to content

Commit 7ca366c

Browse files
31chtumaisch
authored andcommitted
Jenkins: fix submodule checkout
1 parent f387753 commit 7ca366c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Jenkinsfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pipeline {
99
}
1010
}
1111
//options {
12-
// skipDefaultCheckout()
12+
// skipDefaultCheckout() // default checkout is required for .devcontainer/Dockerfile
1313
//}
1414
stages {
1515
stage('Cleanup') {
@@ -19,14 +19,14 @@ pipeline {
1919
}
2020
stage('Checkout') {
2121
steps {
22-
sh 'git submodule update --init --recursive'
23-
//checkout(
24-
// scmGit(
25-
// branches: [[name: env.BRANCH_NAME]],
26-
// extensions: [submodule(recursiveSubmodules: true, reference: '')],
27-
// userRemoteConfigs: [[url: FIXME !!!]]
28-
// )
29-
//)
22+
//sh 'git submodule update --init --recursive'
23+
checkout(
24+
scmGit(
25+
branches: scm.branches,
26+
extensions: [submodule(recursiveSubmodules: true, reference: '')],
27+
userRemoteConfigs: scm.userRemoteConfigs
28+
)
29+
)
3030
}
3131
}
3232
stage('Static code analysis') {
@@ -100,4 +100,4 @@ pipeline {
100100
}
101101
}
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)