From 5d2658f4958e0ff8847154bacc2821e5bd51eb78 Mon Sep 17 00:00:00 2001 From: Hammy Date: Mon, 7 Jun 2021 00:44:17 +0100 Subject: [PATCH] Update Jenkinsfile Trying to experiment if I can get rid of classifier "core" being needed to pull in MyWaifuWrapper --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index adba505..b0ce923 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,7 +54,7 @@ pipeline { repository: NEXUS_REPOSITORY, credentialsId: NEXUS_CREDENTIAL_ID, artifacts: [ - [artifactId: pom.artifactId, classifier: 'core', file: jarArtifact, type: pom.packaging], + [artifactId: pom.artifactId, classifier: '', file: jarArtifact, type: pom.packaging], [artifactId: pom.artifactId, classifier: 'javadocs', file: javadocsArtifact, type: pom.packaging], [artifactId: pom.artifactId, classifier: 'sources', file: jarWithSourcesArtifact, type: pom.packaging], [artifactId: pom.artifactId, classifier: '', file: "pom.xml", type: "pom"] @@ -64,7 +64,6 @@ pipeline { error "*** Files could not be found"; } } - archiveArtifacts artifacts: 'target/*.jar', onlyIfSuccessful: true } } } @@ -73,6 +72,9 @@ pipeline { success { echo "I'm Feeling Swag!" + echo "Archiving Artifacts" + archiveArtifacts artifacts: 'target/*.jar' + echo "Generating Test Report..." publishCoverage adapters: [jacocoAdapter('target/site/jacoco/jacoco.xml')]