From fb73bd1b7e7ec25c4d11b47215990bfb96220e25 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sat, 5 Jun 2021 04:18:15 +0100 Subject: [PATCH] Update Jenkinsfile Remove when() --- Jenkinsfile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 39140cf..2683625 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,20 +44,6 @@ pipeline { jarWithSourcesArtifact = filesByGlob[1].path; jarArtifact = filesByGlob[2].path; - when { - allOf { - expression { - return fileExists(javadocsArtifact) - } - expression { - return fileExists(jarWithSourcesArtifact) - } - expression { - return fileExists(jarArtifact) - } - } - } - if (fileExists(javadocsArtifact) && fileExists(jarWithSourcesArtifact) && fileExists(jarArtifact)) { echo "*** File: ${javadocsArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"; echo "*** File: ${jarWithSourcesArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";