add mv file

This commit is contained in:
Zohar 2024-04-08 20:31:40 -04:00
parent 7350e87ec8
commit 673a5f192e

View file

@ -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 /'
}
}
} }
} }