Commit 0713b402 authored by xujian's avatar xujian

xx

parent 7652522f
......@@ -2,10 +2,10 @@
def repos = [
[dir: 'BASE', batch:'master', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-basic.git'],
[dir: 'CORE', batch:'master', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcodecore.git'],
[dir: 'HTJ', batch:'master', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj.git'],
[dir: 'WEB', batch:'master', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj-vue.git']
[dir: 'BASE', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-basic.git'],
[dir: 'CORE', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcodecore.git'],
[dir: 'HTJ', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj.git'],
[dir: 'WEB', url: 'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj-vue.git']
]
def smallfile
......@@ -48,29 +48,11 @@ pipeline {
// }
// }
stage('参数定义') {
steps {
script {
for (repo in repos) {
properties([
parameters([
gitParameter(branchFilter: 'origin/(.*)',
defaultValue: repo.batch,
name: repo.dir,
type: 'PT_BRANCH_TAG',
useRepository: repo.url)
])
])
}
}
}
}
stage('步骤二: 代码获取'){
steps {
script {
for (repo in repos) {
dir(repo.dir) {
git branch: ${params.[repo.dir]}, credentialsId: '0fba0f76-d958-4800-8165-cad2442392ff', url: repo.url
git branch: ${params[repo.dir]}, credentialsId: '0fba0f76-d958-4800-8165-cad2442392ff', url: repo.url
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment