Skip to content

Commit

Permalink
Checkout submodules using scm
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jun 14, 2017
1 parent 4faacc3 commit 518c88d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ node ('rocmtest')
// The client workspace is shared with the docker container
stage('HCC Checkout')
{
deleteDir( )
checkout scm

// list the commit hash of the submodules
sh 'git ls-tree HEAD | grep commit'

// clone the submodules
sh 'git submodule update --init'
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
extensions: scm.extensions + [[$class: 'CleanCheckout'], [$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: false, recursiveSubmodules: true, reference: '', trackingSubmodules: false]],
userRemoteConfigs: scm.userRemoteConfigs
])
}

def hcc_build_image = null
Expand Down

0 comments on commit 518c88d

Please sign in to comment.