mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Added artifactory
This commit is contained in:
parent
f97f79e5bf
commit
006ff48912
1 changed files with 33 additions and 1 deletions
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
|
@ -11,12 +11,44 @@ pipeline {
|
|||
branch: 'main'
|
||||
}
|
||||
}
|
||||
stage ('Artifactory configuration') {
|
||||
steps {
|
||||
rtServer (
|
||||
id: "ARTIFACTORY_SERVER",
|
||||
url: 'https://gaseerwadham.jfrog.io/artifactory',
|
||||
credentialsId: 'JFROG_CLOUD_ADMIN'
|
||||
)
|
||||
|
||||
rtMavenDeployer (
|
||||
id: "MAVEN_DEPLOYER",
|
||||
serverId: "ARTIFACTORY_SERVER",
|
||||
releaseRepo: 'libs-release',
|
||||
snapshotRepo: 'libs-snapshot'
|
||||
)
|
||||
|
||||
rtMavenResolver (
|
||||
id: "MAVEN_RESOLVER",
|
||||
serverId: "ARTIFACTORY_SERVER",
|
||||
releaseRepo: 'libs-release',
|
||||
snapshotRepo: 'libs-snapshot'
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('package') {
|
||||
tools {
|
||||
jdk 'JDK_17'
|
||||
}
|
||||
steps {
|
||||
sh "./mvnw ${params.MAVEN_GOAL}"
|
||||
rtMavenRun (
|
||||
tool: 'MAVEN_DEFAULT',
|
||||
pom: 'pom.xml',
|
||||
goals: 'clean install',
|
||||
deployerId: "MAVEN_DEPLOYER"
|
||||
|
||||
)
|
||||
rtPublishBuildInfo (
|
||||
serverId: "ARTIFACTORY_SERVER"
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('sonar analysis') {
|
||||
|
|
Loading…
Reference in a new issue