Update Jenkinsfile

Revert to simple if condition check
pull/3/head
Hammy 3 years ago
parent 8e51c55300
commit 6faf748377

4
Jenkinsfile vendored

@ -58,6 +58,7 @@ pipeline {
} }
} }
if (fileExists(javadocsArtifact) && fileExists(jarWithSourcesArtifact) && fileExists(jarArtifact)) {
echo "*** File: ${javadocsArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"; echo "*** File: ${javadocsArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
echo "*** File: ${jarWithSourcesArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"; echo "*** File: ${jarWithSourcesArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
echo "*** File: ${jarArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"; echo "*** File: ${jarArtifact}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
@ -77,6 +78,9 @@ pipeline {
[artifactId: pom.artifactId, classifier: '', file: "pom.xml", type: "pom"] [artifactId: pom.artifactId, classifier: '', file: "pom.xml", type: "pom"]
] ]
) )
} else {
error "*** Files could not be found";
}
} }
} }
} }

Loading…
Cancel
Save