From 6331a5e5e9f7692e3658f874639481943a39a395 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Thu, 9 Dec 2021 23:31:05 -0800 Subject: [PATCH] Preserve artifacts --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f75d97e..a7ae1ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,6 @@ podTemplate(label: label, containers: [ ]) { node(label) { stage('Checkout') { - // git credentialsId: 'jenkins-credentials', url: 'https://git.thejimnicholson.com/homelab/java-spring-microservice.git' checkout scm container('maven') { stage('Build') { @@ -18,6 +17,9 @@ podTemplate(label: label, containers: [ mvn clean package -Dmaven.test.skip ''' } + stage('Archive') { + archiveArtifacts artifacts: 'target/*.jar', followSymlinks: false + } } } }