when else

This commit is contained in:
VSAzima 2021-04-22 20:10:21 +04:00
parent 58f6787c6a
commit 368a5b13ab

6
Jenkinsfile vendored
View file

@ -33,7 +33,7 @@ pipeline {
artifactPath = filesByGlob[0].path;
artifactExists = fileExists artifactPath;
if(artifactExists) {
when(artifactExists) {
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
nexusArtifactUploader(
@ -55,9 +55,7 @@ pipeline {
type: "pom"]
]
);
} else {
error "*** File: ${artifactPath}, could not be found";
}
}
}
}
}