From 7edd1ef9042bfa03b6fdf1a5d937055660c144e9 Mon Sep 17 00:00:00 2001 From: divyeshgaikwad <160483883+divyeshgaikwad@users.noreply.github.com> Date: Fri, 8 Mar 2024 00:06:54 +0530 Subject: [PATCH] Update Jenkinsfile Jfrog --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3392428c..7b646728 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,8 @@ pipeline{ } stages{ - + stage ('Pushing Jfrog File'){ + stage('Git Checkout'){ when { expression { params.action == 'create' } } steps{ @@ -56,12 +57,16 @@ pipeline{ } stage('Quality Gate Status Check : Sonarqube'){ when { expression { params.action == 'create' } } - steps{ + steps{ + script{ + sh 'curl -X PUT -u admin:Password1 -T /var/lib/jenkins/workspace/Java_app_3.0/target/kubernetes-configmap-reload-0.0.1-SNAPSHOT.jar "http://18.144.83.52:8082/artifactory/example-repo-local/kubernetes-configmap-reload-0.0.1-SNAPSHOT.jar"' + steps{ script{ def SonarQubecredentialsId = 'sonarqube-api' QualityGateStatus(SonarQubecredentialsId) } + } } } stage('Maven Build : maven'){