如何为大型项目实施 Jenkins Pipeline for Shallow Repository Cloning/Checkout SVN(Subversion repo)

问题描述

感谢任何帮助!

如何为大型项目实现 Jenkins Pipeline for Shallow Repository cloning/Checkout SVN(Subversion repo),因为每次触发 Jenkins 管道时它都会“清理本地目录”并一次又一次地克隆整个项目?

我的詹金斯档案:

  node {
checkout([$class: 'SubversionSCM',additionalCredentials: [],excludedCommitMessages: '',excludedRegions: '',excludedRevprop: '',excludedUsers: '',filterChangelog: false,ignoreDirPropChanges: false,includedRegions: '',locations: [[credentialsId: 'DevOpsAshishSvn',depthOption: 'infinity',ignoreExternalsOption: true,// local: 'cable_branch',remote: "https://xyz207.net.com/svn/Simulator/releases/beta"]],workspaceUpdater: [$class: 'UpdateUpdater']])
    
    stage (‘Build’) {

             def workspace = WORKSPACE
                         def jobname = JOBNAME
                         def fullpatname = "${workspace}\${jobname}\beta"
             bat "dir"
                         dir($fullpatname) {   
                          bat "dir"
                              bat "svn upgrade"
                  bat "C:\\Program Files\\Unity\\Hub\\Editor\\2019.1.2f1\\Editor\\Unity.exe -quit -batchmode -nographics -execute\$\$anonymous\$\$ethod JenkinsBuild.PerformWindowsBuild -nolog"
        }
         }
}

现在我想知道我应该向 Jenkinsfile 中的这段代码添加什么,这将用作浅存储库克隆并避免冗余克隆 SVN 存储库中的代码

请帮助!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)