checkout([
$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: 'xxxxx', url: "${project_url}"]]
])
在pepeline脚本中的extensions(扩展插件)中添加设置timeout时间为30min,默认为10min,即可解决