From ca9f60a20c3f666e6aa2243af583eb921e0d4d37 Mon Sep 17 00:00:00 2001 From: ametgud4u <64977602+ametgud4u@users.noreply.github.com> Date: Sun, 12 Jul 2020 16:52:32 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 15eca5f77..716b1f80f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,17 +12,10 @@ node('master'){ sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar' } - stage("Quality Gate"){ - timeout(time: 35, unit: 'MINUTES') { - def qg = waitForQualityGate() - if (qg.status != 'OK') { - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - stage('postbuild'){ + stage('postbuild'){ junit '**/target/surefire-reports/*.xml' archiveArtifacts 'target/*.jar' - } - } + } } } }