fix:Jenkinsfile更新

This commit is contained in:
orgin 2023-05-11 18:45:09 +08:00
parent c0dfee4bf4
commit 219aa1a8c0

4
Jenkinsfile vendored
View File

@ -31,7 +31,7 @@ pipeline {
//choice(choices:"master", description:"请填写git分支",name:"branch")
string(defaultValue:"jeecg-system-start-3.5.1.jar", description:"jar包名称",name:"jarName")
string(defaultValue:"alysisSystemForRadionuclide", description:"项目名称",name:"projectName")
string(defaultValue:"/home/zhaohy/test/expect_scp", description:"expect_scp可运行脚本地址",name:"expectScpPath")
string(defaultValue:"/var/lib/jenkins/workspace/alysisSystemForRadionuclide", description:"expect_scp可运行脚本地址",name:"expectScpPath")
string(defaultValue:"/home/zhaohy/test/expect_ssh", description:"expect_ssh可运行脚本地址",name:"expectSsh")
string(defaultValue:"192.168.0.115", description:"scp发送文件的服务器地址",name:"scpHost")
string(defaultValue:"zhaohy", description:"scp发送服务器的用户名",name:"scpUserName")
@ -50,7 +50,7 @@ pipeline {
stage('部署') {
steps {
sh "pwd"
sh "cd ${params.projectName}/ && ${params.expectScpPath} ${params.scpHost} ${params.scpUserName} ${params.scpPwd} target/*.jar ${params.scpTargetPath}"
sh "cd ${params.projectName}/ && ${params.expectScpPath} target/*.jar ${params.scpTargetPath}"
}
}
// stage('备份') {