Commit a2a45180 authored by xujian's avatar xujian

xx

parent 6e52c8ae
@Library('jenkins-shared-library') _
def repos = [
[dir: 'BASE', batch:'master', url: 'git@114.116.202.8:factory-tobacco/factory-tobacco-basic.git'],
[dir: 'CORE', batch:'master', url: 'git@114.116.202.8:factory-tobacco/factory-tobacco-qrcodecore.git'],
[dir: 'HTJ', batch:'master', url: 'git@114.116.202.8:factory-tobacco/factory-tobacco-qrcode-htj.git'],
[dir: 'WEB', batch:'master', url: 'git@114.116.202.8:factory-tobacco/factory-tobacco-qrcode-htj-vue.git']
]
def smallfile
pipeline {
agent any
parameters {
// gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BASE', type: 'PT_BRANCH_TAG', useRepository: '.*RuoYi-Cloud.git' // 后端
// gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'CORE', type: 'PT_BRANCH_TAG', useRepository: '.*RuoYi-Cloud.git' // 后端
// gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'HTJ', type: 'PT_BRANCH_TAG', useRepository: '.*RuoYi-Cloud.git' // 后端
// gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'WEB', type: 'PT_BRANCH_TAG', useRepository: '.*RuoYi-Cloud.git' // 后端
for (repo in repos) {
gitParameter branchFilter: 'origin/(.*)', defaultValue: repo.batch , name: repo.dir, type: 'PT_BRANCH_TAG', useRepository: repo.url // 后端
}
}
stages {
stage('Build') {
steps {
script {
def yamlFile = readFile('project.yaml')
def smallfile = log.readYaml(yamlFile)
// stage('步骤一: 参数获取') {
// steps {
// script {
// def yamlFile = readFile('project.yaml')
// def smallfile = log.readYaml(yamlFile)
// base = xxx.base.module
// core = xxx.core.module
......@@ -30,6 +49,33 @@ pipeline {
}
stage('步骤二: 代码获取'){
steps {
script {
for (repo in repos) {
dir(repo.dir) {
git branch: "${params.dir}", credentialsId: 'bd2776e5-9885-4112-bdd7-01a6c30353a0', url: repo.url
}
}
}
}
}
stage('步骤二: 基础模块构建'){
}
stage('步骤三: 核心模块构建'){
}
stage('步骤四: HTJ模块构建'){
}
stage('步骤五: Web模块构建'){
}
......
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