From 1d9fce602bbf7caab190d42f8f6886f6e98eade8 Mon Sep 17 00:00:00 2001 From: Madhuri-chinta <2509.sweety@gmail.com> Date: Tue, 14 Mar 2023 21:27:47 +0530 Subject: [PATCH] added changes --- Jenkinsfile | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d9e43186c..d99352407 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" + ) + } + } } }