mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
fixed syntax by define tools
This commit is contained in:
parent
4d1bc8e6a2
commit
49e062f018
1 changed files with 4 additions and 1 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -7,6 +7,9 @@ pipeline {
|
||||||
// START :
|
// START :
|
||||||
// Definition of Jenkins job configuration
|
// Definition of Jenkins job configuration
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
tools {
|
||||||
|
maven 'M3'
|
||||||
|
}
|
||||||
options {
|
options {
|
||||||
skipStagesAfterUnstable()
|
skipStagesAfterUnstable()
|
||||||
}
|
}
|
||||||
|
@ -38,7 +41,7 @@ pipeline {
|
||||||
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||||
rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "ARTIFACTORY_SERVER",
|
rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "ARTIFACTORY_SERVER",
|
||||||
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||||
rtMavenRun (tool: $env.MAVEN_TOOL, pom: './pom.xml',goals: 'clean install',
|
rtMavenRun (tool: MAVEN_TOOL, pom: './pom.xml',goals: 'clean install',
|
||||||
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
|
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
|
||||||
//sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
//sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue