Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cicdhtj
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xujian
cicdhtj
Commits
a2a45180
Commit
a2a45180
authored
Sep 22, 2024
by
xujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
6e52c8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
6 deletions
+52
-6
Jenkinsfile
Jenkinsfile
+52
-6
No files found.
Jenkinsfile
View file @
a2a45180
@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模块构建'
){
}
...
...
@@ -37,4 +83,4 @@ pipeline {
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment