Skip to content

Commit e2d66d2

Browse files
committed
jenkins: Support submodules in dist build
Support checking out submodules properly in the dist build job, given the increased reliance on submodules in Open MPI 5.0 and later. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 6ead2d4 commit e2d66d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jenkins/open-mpi.dist.create-tarball.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,11 @@ def checkout_code() {
178178
doGenerateSubmoduleConfigurations: false,
179179
extensions: [[$class: 'WipeWorkspace'],
180180
[$class: 'RelativeTargetDirectory',
181-
relativeTargetDir: 'ompi']],
182-
submoduleCfg: [],
181+
relativeTargetDir: 'ompi'],
182+
[$class: 'SubmoduleOption',
183+
recursiveSubmodules: 'true',
184+
disableSubmodules: 'false',
185+
parentCredentials: 'true']],
183186
userRemoteConfigs: [[credentialsId: '6de58bf1-2619-4065-99bb-8d284b4691ce',
184187
url: 'https://github.com/open-mpi/ompi/']]])
185188
// scm is a provided global variable that points to the repository

0 commit comments

Comments
 (0)