mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
when else
This commit is contained in:
parent
58f6787c6a
commit
368a5b13ab
1 changed files with 2 additions and 4 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue