From 1804721e1d5f08761df04ccf2d03df829f2b15ef Mon Sep 17 00:00:00 2001 From: Zohar Date: Sun, 7 Apr 2024 20:20:05 -0400 Subject: [PATCH] add build jar --- Jenkinsfile-1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile-1 b/Jenkinsfile-1 index 01c530a78..375099281 100644 --- a/Jenkinsfile-1 +++ b/Jenkinsfile-1 @@ -21,4 +21,14 @@ node { sh "${mvn}/bin/mvn sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web' -Dsonar.sources=src/ -Dsonar.java.binaries=target/classes/ -Dsonar.exclusions=src/test/java/****/*.java" } } + stage("Build JAR"){ + steps{ + sh "./mvnw package" + } + post{ + success{ + archiveArtifacts "target/*.jar" + } + } + } } \ No newline at end of file