Jenkins pipeline git command submodule update

前端 未结 3 1550
甜味超标
甜味超标 2020-12-08 02:31

I want to update submodule on git clone.

Is there a way to do this with Jenkins pipeline Git command?

Currently I\'m doing this...

git branch         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 03:10

    checkout([
        $class: 'GitSCM', 
        branches: scm.branches, 
        doGenerateSubmoduleConfigurations: false, 
        extensions: [[
          $class: 'SubmoduleOption', 
          disableSubmodules: false, 
          parentCredentials: true, 
          recursiveSubmodules: true, 
          reference: '', 
          trackingSubmodules: false
        ]], 
        submoduleCfg: [], 
        userRemoteConfigs: scm.userRemoteConfigs
      ])
    

提交回复
热议问题