mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25: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
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('compile') {
|
stage('Compile') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw clean'
|
sh './mvnw clean'
|
||||||
sh './mvnw compile'
|
sh './mvnw compile'
|
||||||
|
@ -35,16 +35,18 @@ pipeline {
|
||||||
|
|
||||||
stage('Build JAR') {
|
stage('Build JAR') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw clean'
|
|
||||||
sh './mvnw compile'
|
|
||||||
sh './mvnw package'
|
sh './mvnw package'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
sh 'nohup java -jar target/*.jar >> server.log 2>&1 &'
|
|
||||||
archiveArtifacts 'target/*.jar'
|
archiveArtifacts 'target/*.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage("Deploy to local jenkins server"){
|
||||||
|
steps {
|
||||||
|
sh 'mv target/*.jar /'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue