mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
add mv file
This commit is contained in:
parent
7350e87ec8
commit
673a5f192e
1 changed files with 6 additions and 4 deletions
|
@ -12,7 +12,7 @@ pipeline {
|
|||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('compile') {
|
||||
stage('Compile') {
|
||||
steps {
|
||||
sh './mvnw clean'
|
||||
sh './mvnw compile'
|
||||
|
@ -35,16 +35,18 @@ pipeline {
|
|||
|
||||
stage('Build JAR') {
|
||||
steps {
|
||||
sh './mvnw clean'
|
||||
sh './mvnw compile'
|
||||
sh './mvnw package'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
sh 'nohup java -jar target/*.jar >> server.log 2>&1 &'
|
||||
archiveArtifacts 'target/*.jar'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Deploy to local jenkins server"){
|
||||
steps {
|
||||
sh 'mv target/*.jar /'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue