编程知识 cdmana.com

jenkins git clone 10分钟超时

   stages {
        stage('拉取源码') {
            steps {
                checkout([
                    //详情看https://www.cnblogs.com/liucx/
                    $class: 'GitSCM', branches: [[name: "${branch}"]],
                    doGenerateSubmoduleConfigurations: false,extensions: [[$class:'CheckoutOption',timeout:30],[$class:'CloneOption',depth:0,noTags:false,reference:'',shallow:false,timeout:30]], submoduleCfg: [],
                    userRemoteConfigs: [[credentialsId: 'github', url: "${project_url}"]]
                ])
            }
        }

版权声明
本文为[ksa呀桃花树旁的小怪兽]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4072296/blog/4839500

Scroll to Top