From d9f669a8265ffcd3a3ffc0186915ee905279b05b Mon Sep 17 00:00:00 2001 From: sridhar Date: Sat, 9 Sep 2023 15:58:38 +0530 Subject: [PATCH] added artifacts --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 96fdd5526..44e05483d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,8 +12,16 @@ pipeline{ steps{ sh 'docker image build -t spc-mvn .' sh 'docker image list' + } } + stage('artifact') { + steps { + archiveArtifacts artifacts: '**/target/spring-petclinic-3.1.0-SNAPSHOT.jar', + onlyIfSuccessful: true + junit testResults: '**/surefire-reports/TEST-*.xml' + } + } stage('docker login'){ steps{ @@ -31,6 +39,9 @@ pipeline{ } stage("kubernetes deployment"){ steps{ + sh """ + + """ sh 'kubectl apply -f deployement.yaml' }