Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpas6-install
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李金钢
cpas6-install
Commits
f2834178
Commit
f2834178
authored
Mar 12, 2026
by
lijingang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加INSTALLATION_DIR参数支持,当参数非空时执行安装包构建
parent
407eb979
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Jenkinsfile
Jenkinsfile
+9
-1
No files found.
Jenkinsfile
View file @
f2834178
...
@@ -45,7 +45,7 @@ pipeline {
...
@@ -45,7 +45,7 @@ pipeline {
)
)
string
(
name:
'NODE_WORKING_DIR'
,
defaultValue:
'G:\\cpas-framework'
,
description:
'electron打包脚本执行的工作目录 G:\\cpas-framework'
)
string
(
name:
'NODE_WORKING_DIR'
,
defaultValue:
'G:\\cpas-framework'
,
description:
'electron打包脚本执行的工作目录 G:\\cpas-framework'
)
string
(
name:
'BRANCH_NAME'
,
defaultValue:
'main'
,
description:
'要构建的分支名称'
)
string
(
name:
'BRANCH_NAME'
,
defaultValue:
'main'
,
description:
'要构建的分支名称'
)
string
(
name:
'INSTALLATION_DIR'
,
defaultValue:
'
E:/CPAS6-101 UFCPAS6.0 致同智审IAS版_测试版
'
,
description:
'安装包打包目录:E:/CPAS6-101 UFCPAS6.0 致同智审IAS版_测试版'
)
string
(
name:
'INSTALLATION_DIR'
,
defaultValue:
''
,
description:
'安装包打包目录:E:/CPAS6-101 UFCPAS6.0 致同智审IAS版_测试版'
)
string
(
name:
'PUBLISH_DIR'
,
defaultValue:
'E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版'
,
description:
'发布目录:E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版'
)
string
(
name:
'PUBLISH_DIR'
,
defaultValue:
'E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版'
,
description:
'发布目录:E:/产品安装包/05 大客户专版/109 致同/CPAS6.0 IAS版'
)
}
}
...
@@ -178,6 +178,14 @@ pipeline {
...
@@ -178,6 +178,14 @@ pipeline {
}
}
// 如果提供了 INSTALLATION_DIR,则执行安装包构建
if
(
params
.
INSTALLATION_DIR
&&
params
.
INSTALLATION_DIR
.
trim
())
{
echo
"检测到 INSTALLATION_DIR 参数: ${params.INSTALLATION_DIR},执行安装包构建..."
def
srcDir
=
"${params.NODE_WORKING_DIR}\\release\\win-unpacked"
def
installBuildResult
=
runPowerShellWithOutput
(
"node ./build.js --dest \"${params.INSTALLATION_DIR}\" --src \"${srcDir}\""
)
echo
"安装包构建结果: ${installBuildResult}"
}
}
else
{
}
else
{
echo
"⏹️ 决策结论: 无需构建,正在跳过..."
echo
"⏹️ 决策结论: 无需构建,正在跳过..."
currentBuild
.
result
=
'SUCCESS'
currentBuild
.
result
=
'SUCCESS'
...
...
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