mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
added jfrog
This commit is contained in:
parent
519e750a89
commit
3297193967
1 changed files with 43 additions and 0 deletions
43
jenkinsfile
43
jenkinsfile
|
@ -18,5 +18,48 @@ pipeline {
|
|||
-Dsonar.projectKey=nareshspc'
|
||||
}
|
||||
}
|
||||
stage('Artifactory configuration') {
|
||||
steps {
|
||||
rtServer (
|
||||
id: "ARTIFACTORY_SERVER",
|
||||
url: 'https://nareshqt.jfrog.io',
|
||||
credentialsId: 'jfrog'
|
||||
)
|
||||
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 {
|
||||
rtMavenRun (
|
||||
tool: 'maven',
|
||||
pom: 'pom.xml',
|
||||
goals: 'package',
|
||||
deployerId: "MAVEN_DEPLOYER"
|
||||
)
|
||||
rtPublishBuildInfo (
|
||||
serverId: "ARTIFACTORY_SERVER"
|
||||
)
|
||||
}
|
||||
}
|
||||
stage{
|
||||
steps{
|
||||
archiveArtifacts artifacts: '**target/*.jar',
|
||||
onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue