编程知识 cdmana.com

Jenkins git clone 10 minutes timeout

   stages {
        stage(' Pull source code ') {
            steps {
                checkout([
                    // For details, see 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, the little monster by the peach blossom tree]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225001616055w.html

Scroll to Top