diff --git a/policeSecurityServer/Jenkinsfile b/policeSecurityServer/Jenkinsfile index 44b8e19..6556f19 100644 --- a/policeSecurityServer/Jenkinsfile +++ b/policeSecurityServer/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { stage('构建后台服务') { steps{ echo '开始构建后台服务' - sh 'cd /var/jenkins_home/workspace/policeSecurity/policeSecurityServer && mvn clean -DskipTests=true package -P prod' + sh 'cd /var/jenkins_home/workspace/警保联动后端服务/policeSecurityServer && mvn clean -DskipTests=true package -P prod' echo '后台服务构建完成' } } @@ -34,7 +34,7 @@ pipeline { sshCommand remote: remote, command: 'pwd=$(pwd) echo "ssh连接成功!当前工作目录:$(pwd)"' sshCommand remote: remote, command: 'echo "将构建的server.jar发送到服务器..."' - sshPut remote: remote, from: '/var/jenkins_home/workspace/policeSecurity/policeSecurityServer/target/policeSecurityServer.jar', into: '/home/javaProject/policeSecurity/logs' + sshPut remote: remote, from: '/var/jenkins_home/workspace/警保联动后端服务/policeSecurityServer/target/policeSecurityServer.jar', into: '/home/javaProject/policeSecurity/logs' sshCommand remote: remote, command: 'echo "server.jar发送成功!"' } }