added changes

This commit is contained in:
Madhuri-chinta 2023-03-14 21:27:47 +05:30
parent 8f1c16f493
commit 1d9fce602b

30
Jenkinsfile vendored
View file

@ -19,7 +19,35 @@ pipeline {
sh 'mvn clean package sonar:sonar'
}
}
}
}
stage('artifactory') {
steps {
rtMavenDeployer (
id: "jfrog",
serverId: "madhuri",
releaseRepo: "madhuri",
snapshotRepo: "madhuri"
)
}
}
stage ('Exec Maven') {
steps {
rtMavenRun (
tool: "MAVEN_GOAL", // Tool name from Jenkins configuration
pom: 'pom.xml',
goals: 'clean install',
deployerId: "jfrog"
)
}
}
stage ('Publish build info') {
steps {
rtPublishBuildInfo (
serverId: "madhuri"
)
}
}
}
}