mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
back to origins def
This commit is contained in:
parent
c10e7c3dd0
commit
637b56d0a7
1 changed files with 2 additions and 5 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -50,10 +50,7 @@ pipeline {
|
||||||
// }
|
// }
|
||||||
stage('push') {
|
stage('push') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
def pom = readMavenPom file: "pom.xml";
|
||||||
checkout scm;
|
|
||||||
echo "check-check";
|
|
||||||
pom = readMavenPom file: "pom.xml";
|
|
||||||
filesByGlob = findFiles(glob: "target/*.${pom.packaging}");
|
filesByGlob = findFiles(glob: "target/*.${pom.packaging}");
|
||||||
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;
|
||||||
|
@ -62,7 +59,7 @@ pipeline {
|
||||||
// if(artifactExists) {
|
// if(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 nexusVersion: ${env.NEXUS_VERSION}, protocol: ${env.NEXUS_PROTOCOL}, nexusUrl: ${env.NEXUS_URL}, groupId: pom.groupId, version: pom.version, repository: ${env.NEXUS_REPOSITORY}, credentialsId: ${env.NEXUS_CREDENTIAL_ID}, artifacts: [
|
def nexusArtifactUploader nexusVersion: ${env.NEXUS_VERSION}, protocol: ${env.NEXUS_PROTOCOL}, nexusUrl: ${env.NEXUS_URL}, groupId: pom.groupId, version: pom.version, repository: ${env.NEXUS_REPOSITORY}, credentialsId: ${env.NEXUS_CREDENTIAL_ID}, artifacts: [
|
||||||
[artifactId: pom.artifactId,
|
[artifactId: pom.artifactId,
|
||||||
classifier: '',
|
classifier: '',
|
||||||
file: artifactPath,
|
file: artifactPath,
|
||||||
|
|
Loading…
Reference in a new issue