Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cicdhtj
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xujian
cicdhtj
Commits
1be53702
Commit
1be53702
authored
Sep 22, 2024
by
xujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
448b05e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
41 deletions
+12
-41
Jenkinsfile
+12
-41
No files found.
Jenkinsfile
View file @
1be53702
def
repos
=
[
[
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'
]
[
dir:
'BASE'
,
type:
mvn
,
url:
'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-basic.git'
],
[
dir:
'CORE'
,
type:
mvn
,
url:
'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcodecore.git'
],
[
dir:
'HTJ'
,
type:
mvn
,
url:
'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj.git'
],
[
dir:
'WEB'
,
type:
node
,
url:
'http://114.116.202.8:18808/factory-tobacco/factory-tobacco-qrcode-htj-vue.git'
]
]
def
smallfile
...
...
@@ -60,48 +60,19 @@ pipeline {
}
}
stage
(
'步骤二:
基础模块
构建'
){
stage
(
'步骤二:
项目
构建'
){
steps
{
script
{
dir
(
'BASE'
)
{
sh
"mvn -T 1C -Dmaven.test.failure.ignore=true clean package install"
}
}
}
}
stage
(
'步骤三: 核心模块构建'
){
steps
{
script
{
dir
(
'CORE'
)
{
sh
"mvn -T 1C -Dmaven.test.failure.ignore=true clean package install"
}
}
}
}
stage
(
'步骤四: HTJ模块构建'
){
steps
{
script
{
dir
(
'HTJ'
)
{
sh
"mvn -T 1C -Dmaven.test.failure.ignore=true clean package install"
}
}
}
}
stage
(
'步骤五: Web模块构建'
){
steps
{
script
{
dir
(
'WEB'
)
{
sh
""
for
(
repo
in
repos
)
{
dir
(
repo
.
dir
)
{
if
(
repo
.
type
==
'mvn'
)
sh
"mvn -T 1C -Dmaven.test.failure.ignore=true clean package install"
else
if
(
repo
.
type
==
'node'
)
sh
"node run build:prod-htj"
}
}
}
}
}
}
}
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