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