mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
updated jenkins
This commit is contained in:
parent
3c85064eea
commit
a2f5be2c1b
1 changed files with 19 additions and 1 deletions
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
|
@ -28,7 +28,25 @@ pipeline {
|
|||
id: "ARTIFACTORY_SERVER",
|
||||
url: "$artifactory_url"
|
||||
)
|
||||
sh 'mvn validate compile test package'
|
||||
rtMavenDeployer (
|
||||
id: "MAVEN_DEPLOYER",
|
||||
serverId: "ARTIFACTORY_SERVER",
|
||||
releaseRepo: "spring-petclinic"
|
||||
)
|
||||
|
||||
rtMavenResolver (
|
||||
id: "MAVEN_RESOLVER",
|
||||
serverId: "ARTIFACTORY_SERVER",
|
||||
releaseRepo: "libs-release"
|
||||
)
|
||||
|
||||
rtMavenRun (
|
||||
tool: MAVEN_TOOL, // Tool name from Jenkins configuration
|
||||
pom: 'pom.xml',
|
||||
goals: 'validate compile test',
|
||||
deployerId: "MAVEN_DEPLOYER",
|
||||
resolverId: "MAVEN_RESOLVER"
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('build docker image') {
|
||||
|
|
Loading…
Reference in a new issue