From 673a5f192e0789e300f9aa99e8cc1a94158f3179 Mon Sep 17 00:00:00 2001 From: Zohar Date: Mon, 8 Apr 2024 20:31:40 -0400 Subject: [PATCH] add mv file --- Jenkinsfile-1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 /' + } + } } }