diff --git a/Jenkinsfile-1 b/Jenkinsfile-1 index 6a78968a7..04597d837 100644 --- a/Jenkinsfile-1 +++ b/Jenkinsfile-1 @@ -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 /' + } + } } }