From efc05eea1808dc0e38e63cc1846880f6077ed790 Mon Sep 17 00:00:00 2001 From: VSAzima Date: Thu, 22 Apr 2021 20:57:37 +0400 Subject: [PATCH] restore bask --- Jenkinsfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 800c7ea84..a0360d64d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,8 +32,9 @@ pipeline { echo "${filesByGlob[0].name} ${filesByGlob[0].path} ${filesByGlob[0].directory} ${filesByGlob[0].length} ${filesByGlob[0].lastModified}" artifactPath = filesByGlob[0].path; artifactExists = fileExists artifactPath; - } - when(artifactExists) { + + if(artifactExists) { + echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"; nexusArtifactUploader( nexusVersion: NEXUS_VERSION, @@ -54,8 +55,11 @@ pipeline { type: "pom"] ] ); - } + } else { + error "*** File: ${artifactPath}, could not be found"; } } } } + } + }