导语:jenkins checkout的时候超时。10分钟不够长
修改checkout部分如下 加上CheckoutOption
checkout([$class : 'GitSCM',
branches : [[name: "${BRANCH}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CloneOption', noTags: false, reference: '', shallow: false, timeout: 60000],[$class:'CheckoutOption',timeout:60000]],
userRemoteConfigs: [[credentialsId: '81f18226-d36e-4a0e-bd0e-b936843ae77b',
url : "http://xxx.git",]]
])
参考
https://www.programminghunter.com/article/2040743440/
https://blog.51cto.com/shoufu/5325294
https://www.codeleading.com/article/23974906101/