mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
added
This commit is contained in:
parent
8076f12578
commit
18eafd9966
1 changed files with 7 additions and 17 deletions
24
jenkinsfile
24
jenkinsfile
|
@ -8,7 +8,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
stage ('Artifactory') {
|
||||
stage ('Artifactory configuration') {
|
||||
steps {
|
||||
rtServer (
|
||||
id: "ARTIFACTORY_SERVER",
|
||||
|
@ -23,29 +23,19 @@ pipeline {
|
|||
snapshotRepo: 'jfrog'
|
||||
)
|
||||
|
||||
rtMavenResolver (
|
||||
id: "MAVEN_RESOLVER",
|
||||
serverId: "ARTIFACTORY_SERVER",
|
||||
releaseRepo: 'libs-release',
|
||||
snapshotRepo: 'libs-snapshot'
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
stage('package') {
|
||||
stage('Build Maven Project') {
|
||||
steps {
|
||||
sh "mvn ${params.MAVEN_GOAL}"
|
||||
rtMavenRun (
|
||||
tool: 'maven',
|
||||
pom: 'pom.xml',
|
||||
goals: 'clean install',
|
||||
deployerId: "MAVEN_DEPLOYER"
|
||||
|
||||
)
|
||||
rtPublishBuildInfo (
|
||||
serverId: "ARTIFACTORY_SERVER"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue