added changes

This commit is contained in:
“[Akhil 2024-12-27 05:42:19 +05:30
parent 3ebad46477
commit f357c78e5f

23
Jenkinsfile vendored
View file

@ -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 {
@ -18,22 +18,11 @@ 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'){