mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 00:45:50 +00:00
no dollar signs left
This commit is contained in:
parent
8554b103d5
commit
d1dcb8be34
1 changed files with 5 additions and 5 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -51,10 +51,10 @@ pipeline {
|
||||||
stage('push') {
|
stage('push') {
|
||||||
steps {
|
steps {
|
||||||
def pom = readMavenPom file: "pom.xml";
|
def 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;
|
||||||
artifactExists = fileExists artifactPath;
|
// artifactExists = fileExists artifactPath;
|
||||||
//
|
//
|
||||||
// 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}";
|
||||||
|
@ -62,7 +62,7 @@ pipeline {
|
||||||
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: [
|
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,
|
[artifactId: pom.artifactId,
|
||||||
classifier: '',
|
classifier: '',
|
||||||
file: artifactPath,
|
file: "target/*.jar",
|
||||||
type: pom.packaging],
|
type: pom.packaging],
|
||||||
[artifactId: pom.artifactId,
|
[artifactId: pom.artifactId,
|
||||||
classifier: '',
|
classifier: '',
|
||||||
|
|
Loading…
Reference in a new issue