Skip to content

Commit 12c7d53

Browse files
authored
Update Jenkinsfile
1 parent a7bbc9a commit 12c7d53

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

Jenkinsfile

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,9 @@ node
1111
stage ('Sonarqube ')
1212
{
1313
withSonarQubeEnv('jenkins_sonarqube') {
14-
sh "mvn sonar:sonar"
14+
sh "mvn verify sonar:sonar"
1515
}
16-
}
17-
stage("Quality Gate Check")
18-
{
19-
timeout(time: 1, unit: 'HOURS')
20-
{
21-
def qg = waitForQualityGate()
22-
if (qg.status != 'OK')
23-
{
24-
error "Pipeline aborted due to quality gate failure: ${qg.status}"
25-
}
26-
}
27-
}
16+
}
2817
try
2918
{
3019
stage ('Build Package')

0 commit comments

Comments
 (0)