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