1.下载多个项目

node {
stage('clone'){
dir('test1'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']],doGenerateSubmoduleConfigurations: false, extensions: [],
submoduleCfg: [], userRemoteConfigs: [[credentialsId: '-150c--87d9-b13f73201107', url: 'git@gitlab.*.*/*-*.git']]])
}
        dir('test'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']],doGenerateSubmoduleConfigurations: false, extensions: [],
submoduleCfg: [], userRemoteConfigs: [[credentialsId: '293a7ae6---87d9-b13f73201107', url: 'git@gitlab/kend.git']]])
}
}
}

jenkins pipline 用法收集-LMLPHP

05-11 17:45