mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
added changes
This commit is contained in:
parent
3ebad46477
commit
f357c78e5f
1 changed files with 6 additions and 17 deletions
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -7,7 +7,7 @@ pipeline {
|
||||||
pollSCM('* * * * *')
|
pollSCM('* * * * *')
|
||||||
}
|
}
|
||||||
tools {
|
tools {
|
||||||
maven 'MAVEN_3.8'
|
maven 'Maven_3.8'
|
||||||
jdk 'JDK_17'
|
jdk 'JDK_17'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
@ -19,21 +19,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('build and package') {
|
stage('build and package') {
|
||||||
steps {
|
steps {
|
||||||
rtMavenDeployer (
|
withSonarQubeEnv('SONAR_CLOUD') {
|
||||||
id: 'SPC_DEPLOYER',
|
sh 'mvn clean package:sonar -Dsonar.organization=Akhil-Tejas225 -Dsonar.token=65fa1d49335531273f064cf5bd21d6c43c30bbc9 -Dsonar.projectKey=spring-petclinic'
|
||||||
serverId: 'JFROG_CLOUD',
|
|
||||||
releaseRepo: 'atdevops-libs-snapshot',
|
}
|
||||||
snapshotRepo: 'atdevops-libs-snapshot'
|
|
||||||
)
|
|
||||||
rtMavenRun (
|
|
||||||
tool: 'MAVEN_3.8',
|
|
||||||
deployerId: 'SPC_DEPLOYER',
|
|
||||||
pom: 'pom.xml',
|
|
||||||
goals: 'clean install'
|
|
||||||
)
|
|
||||||
rtPublishBuildInfo (
|
|
||||||
serverId: 'JFROG_CLOUD'
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('reporting'){
|
stage('reporting'){
|
||||||
|
|
Loading…
Reference in a new issue