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
368a5b13ab
commit
41e2d23120
1 changed files with 2 additions and 4 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -27,15 +27,13 @@ pipeline {
|
|||
stage('push') {
|
||||
steps {
|
||||
script {
|
||||
checkout scm;
|
||||
pom = readMavenPom file: "pom.xml";
|
||||
filesByGlob = findFiles(glob: "target/*.${pom.packaging}");
|
||||
echo "${filesByGlob[0].name} ${filesByGlob[0].path} ${filesByGlob[0].directory} ${filesByGlob[0].length} ${filesByGlob[0].lastModified}"
|
||||
artifactPath = filesByGlob[0].path;
|
||||
artifactExists = fileExists artifactPath;
|
||||
|
||||
when(artifactExists) {
|
||||
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
||||
|
||||
nexusArtifactUploader(
|
||||
nexusVersion: NEXUS_VERSION,
|
||||
protocol: NEXUS_PROTOCOL,
|
||||
|
|
Loading…
Reference in a new issue