mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45: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;
|
artifactPath = filesByGlob[0].path;
|
||||||
artifactExists = fileExists artifactPath;
|
artifactExists = fileExists artifactPath;
|
||||||
|
|
||||||
if(artifactExists) {
|
when(artifactExists) {
|
||||||
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
||||||
|
|
||||||
nexusArtifactUploader(
|
nexusArtifactUploader(
|
||||||
|
@ -55,9 +55,7 @@ pipeline {
|
||||||
type: "pom"]
|
type: "pom"]
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} else {
|
}
|
||||||
error "*** File: ${artifactPath}, could not be found";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue