mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
0a8a8a7c77
commit
74010d4ea0
1 changed files with 1 additions and 35 deletions
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
|
@ -11,43 +11,9 @@ pipeline {
|
||||||
url: 'https://github.com/Bharatkumar5690/spring-petclinic.git'
|
url: 'https://github.com/Bharatkumar5690/spring-petclinic.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Artifactory configuration') {
|
|
||||||
steps {
|
|
||||||
rtServer (
|
|
||||||
id: "ARTIFACTORY_SERVER",
|
|
||||||
url: 'https://sbharatkumar.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') {
|
stage('package') {
|
||||||
steps {
|
steps {
|
||||||
rtMavenRun (
|
sh 'mvn package'
|
||||||
tool: 'MAVEN_DEFAULT',
|
|
||||||
pom: 'pom.xml',
|
|
||||||
goals: 'clean install',
|
|
||||||
deployerId: "MAVEN_DEPLOYER",
|
|
||||||
resolverId: "MAVEN_RESOLVER"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Publish build info') {
|
|
||||||
steps {
|
|
||||||
rtPublishBuildInfo (
|
|
||||||
serverId: "ARTIFACTORY_SERVER"
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test the code by using sonarqube') {
|
stage('Test the code by using sonarqube') {
|
||||||
|
|
Loading…
Reference in a new issue