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'){