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
3a2bd7a4
Commit
3a2bd7a4
authored
Feb 18, 2025
by
xujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署
parent
06588280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Jenkinsfile
+2
-0
No files found.
Jenkinsfile
View file @
3a2bd7a4
...
...
@@ -25,6 +25,7 @@ pipeline {
gitParameter
branchFilter:
'origin/(.*)'
,
defaultValue:
defaultBranch
,
name:
'CORE'
,
type:
'PT_BRANCH_TAG'
,
useRepository:
'.*factory-tobacco-qrcodecore.git'
// 后端
gitParameter
branchFilter:
'origin/(.*)'
,
defaultValue:
defaultBranch
,
name:
'HTJ'
,
type:
'PT_BRANCH_TAG'
,
useRepository:
'.*factory-tobacco-qrcode-htj.git'
// 后端
gitParameter
branchFilter:
'origin/(.*)'
,
defaultValue:
defaultBranch
,
name:
'WEB'
,
type:
'PT_BRANCH_TAG'
,
useRepository:
'.*factory-tobacco-qrcode-htj-vue.git'
// 后端
booleanParam
(
name:
'DEPLOY'
,
defaultValue:
false
,
description:
'是否部署'
)
// 布尔值
}
tools
{
...
...
@@ -171,6 +172,7 @@ pipeline {
stage
(
'步骤五: 服务部署'
){
when
{
expression
{
return
params
.
DEPLOY
}
}
steps
{
withCredentials
([
file
(
credentialsId:
'00789dc5-a86e-427d-9a57-f5d02a52cb6e'
,
variable:
'KUBECONFIG_FILE'
)])
{
script
{
...
...
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