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,即可解决

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐