Commit 4949f086 authored by 郭灿峰's avatar 郭灿峰

Update Jenkinsfile

parent 7edd8121
...@@ -6,10 +6,9 @@ pipeline { ...@@ -6,10 +6,9 @@ pipeline {
sh '/var/jenkins_home/plugins/apache-maven-3.6.3/bin/mvn clean package' sh '/var/jenkins_home/plugins/apache-maven-3.6.3/bin/mvn clean package'
} }
} }
stage('deploy') {
stage('deploy') {
steps { steps {
sshPublisher(publishers: [sshPublisherDesc(configName: 'nginx', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'ps -ef | grep pybbs.jar | grep -v grep | cut -c 9-15 | xargs kill || java -jar pybbs.jar --spring.profiles.active=prod > log.file 2>&1 &', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/app/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: './target/pybbs.jar')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) sshPublisher(publishers: [sshPublisherDesc(configName: 'nginx', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'cd /app ; ps -ef | grep pybbs.jar | grep -v grep | cut -c 9-15 | xargs kill ;java -jar pybbs.jar --spring.profiles.active=prod > log.file 2>&1 &', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/app/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: './target/pybbs.jar')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment