Skip to content

Commit

Permalink
Merge pull request #361 from RadeonOpenCompute/jenkins-submodules
Browse files Browse the repository at this point in the history
Checkout submodules using scm
  • Loading branch information
whchung committed Jun 15, 2017
2 parents 6329f79 + 518c88d commit 1f25f79
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 1f25f79

Please sign in to comment.