Skip to content

Commit

Permalink
Add 'submodule update --init' when build spark-rapids (#8684)
Browse files Browse the repository at this point in the history
* Add 'submodule update --init' when build spark-rapids

Signed-off-by: Tim Liu <[email protected]>

* Update

* upload .git to Databricks cluster to clone submodules

* Update according to review comments

Signed-off-by: Tim Liu <[email protected]>

* Run submodule update/init as part of the checkout in the GitSCM plugin

Signed-off-by: Tim Liu <[email protected]>

* Enable git submodule for SCM checkout

Signed-off-by: Tim Liu <[email protected]>

---------

Signed-off-by: Tim Liu <[email protected]>
  • Loading branch information
NvTimLiu authored Jul 24, 2023
1 parent e86f071 commit c144858
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jenkins/Jenkinsfile-blossom.premerge
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,12 @@ void checkoutCode(String url, String sha) {
poll: true,
scm: [
$class : 'GitSCM', branches: [[name: sha]],
submoduleCfg : [],
userRemoteConfigs: [[
credentialsId: 'github-token',
url : url,
refspec : '+refs/pull/*/merge:refs/remotes/origin/pr/*']]
refspec : '+refs/pull/*/merge:refs/remotes/origin/pr/*']],
extensions : [[$class: 'CloneOption', shallow: true],
[$class: 'SubmoduleOption', disableSubmodules: false, shallow: true, parentCredentials: true]]
]
)

Expand Down
5 changes: 3 additions & 2 deletions jenkins/Jenkinsfile-blossom.premerge-databricks
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ void checkoutCode(String url, String sha) {
poll: true,
scm: [
$class : 'GitSCM', branches: [[name: sha]],
submoduleCfg : [],
userRemoteConfigs: [[
credentialsId: 'github-token',
url : url,
refspec : '+refs/pull/*/merge:refs/remotes/origin/pr/*']]
refspec : '+refs/pull/*/merge:refs/remotes/origin/pr/*']],
extensions : [[$class: 'CloneOption', shallow: true],
[$class: 'SubmoduleOption', disableSubmodules: false, shallow: true, parentCredentials: true]]
]
)

Expand Down

0 comments on commit c144858

Please sign in to comment.