mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
locate mvn
This commit is contained in:
parent
11b5a29f13
commit
911b693250
1 changed files with 2 additions and 0 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -33,6 +33,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh "java -version"
|
sh "java -version"
|
||||||
sh "mvn -version"
|
sh "mvn -version"
|
||||||
|
withMaven {
|
||||||
// sh "mvn clean validate compile test package"
|
// sh "mvn clean validate compile test package"
|
||||||
// sh "ls -la target"
|
// sh "ls -la target"
|
||||||
// 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"'
|
||||||
|
@ -44,6 +45,7 @@ pipeline {
|
||||||
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||||
rtMavenRun (tool: 'mvn', pom: './pom.xml',goals: 'clean install',
|
rtMavenRun (tool: 'mvn', pom: './pom.xml',goals: 'clean install',
|
||||||
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
|
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build docker image') {
|
stage('build docker image') {
|
||||||
|
|
Loading…
Reference in a new issue