mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
script
This commit is contained in:
parent
39c4fd6a62
commit
c79e562a06
1 changed files with 1 additions and 15 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -50,21 +50,7 @@ pipeline {
|
|||
// }
|
||||
stage('push') {
|
||||
steps {
|
||||
script {
|
||||
def 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;
|
||||
//
|
||||
// if(artifactExists) {
|
||||
// echo "*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}";
|
||||
|
||||
def nexusArtifactUploader nexusVersion: "nexus3", protocol: "http", nexusUrl: "172.19.0.3:8081", groupId: pom.groupId, version: pom.version, repository: "maven-nexus-repo", credentialsId: "e6072e08-87bc-481e-9e4a-55d506546356", artifacts: [ [artifactId: pom.artifactId, classifier: '', file: "target/*.jar", type: pom.packaging], [artifactId: pom.artifactId, classifier: '', file: "pom.xml", type: "pom"] ];
|
||||
// } else {
|
||||
// error "*** File: ${artifactPath}, could not be found";
|
||||
// }
|
||||
}
|
||||
nexusPublisher nexusInstanceId: 'maven-nexus-repo', nexusRepositoryId: 'maven-releases', packages: [[$class: 'MavenPackage', mavenAssetList: [[classifier: '', extension: '.jar', filePath: '/target/']], mavenCoordinate: [artifactId: 'spring-petclinic', groupId: 'org.springframework.samples', packaging: 'pom', version: '2.4.2']]]
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue