mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
changes
This commit is contained in:
parent
2611d7c0e2
commit
ecaf7eb5aa
1 changed files with 4 additions and 6 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -1,5 +1,9 @@
|
|||
pipeline {
|
||||
agent { label 'Master'}
|
||||
tools {
|
||||
jdk 'JDK_17'
|
||||
maven 'MAVEN'
|
||||
}
|
||||
triggers { pollSCM ('* * * * *') }
|
||||
stages{
|
||||
stage('vcs') {
|
||||
|
@ -15,14 +19,12 @@ pipeline {
|
|||
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",
|
||||
|
@ -32,10 +34,6 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('package') {
|
||||
tools {
|
||||
jdk 'JDK_17'
|
||||
maven 'MAVEN'
|
||||
}
|
||||
sh "mvn ${params.MAVEN_GOAL}"
|
||||
}
|
||||
stage('Test the code by using sonarqube') {
|
||||
|
|
Loading…
Reference in a new issue