mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
if commented
This commit is contained in:
parent
eab11af5d7
commit
fb2cd55409
1 changed files with 10 additions and 7 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -32,11 +32,14 @@ pipeline {
|
||||||
echo "${filesByGlob[0].name} ${filesByGlob[0].path} ${filesByGlob[0].directory} ${filesByGlob[0].length} ${filesByGlob[0].lastModified}"
|
echo "${filesByGlob[0].name} ${filesByGlob[0].path} ${filesByGlob[0].directory} ${filesByGlob[0].length} ${filesByGlob[0].lastModified}"
|
||||||
artifactPath = filesByGlob[0].path;
|
artifactPath = filesByGlob[0].path;
|
||||||
artifactExists = fileExists artifactPath;
|
artifactExists = fileExists artifactPath;
|
||||||
|
//
|
||||||
|
// if(artifactExists) {
|
||||||
|
// echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
||||||
|
|
||||||
if(artifactExists) {
|
def nexusArtifactUploader(${params.NEXUS_VERSION}, ${params.NEXUS_PROTOCOL}, ${params.NEXUS_URL}, pom.groupId, pom.version, ${params.NEXUS_REPOSITORY}, ${params.NEXUS_CREDENTIAL_ID},
|
||||||
echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
artifacts: [
|
||||||
|
[artifactId: pom.artifactId,
|
||||||
def nexusArtifactUploader( ${NEXUS_VERSION}, ${NEXUS_PROTOCOL}, ${NEXUS_URL}, pom.groupId, pom.version, ${NEXUS_REPOSITORY}, ${NEXUS_CREDENTIAL_ID}, artifacts: [ [artifactId: pom.artifactId, classifier: '',
|
classifier: '',
|
||||||
file: artifactPath,
|
file: artifactPath,
|
||||||
type: pom.packaging],
|
type: pom.packaging],
|
||||||
[artifactId: pom.artifactId,
|
[artifactId: pom.artifactId,
|
||||||
|
@ -45,9 +48,9 @@ pipeline {
|
||||||
type: "pom"]
|
type: "pom"]
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} else {
|
// } else {
|
||||||
error "*** File: ${artifactPath}, could not be found";
|
// error "*** File: ${artifactPath}, could not be found";
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue