Skip to content

Commit

Permalink
Update SonarQube Stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Selmouni-Abdelilah committed Feb 23, 2024
1 parent 9b20a7d commit d6c5864
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ pipeline{
}
}
stage("Quality Gate"){
timeout(time: 1, unit: 'HOURS') {
steps{
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
steps{
timeout(time: 1, unit: 'HOURS') {

def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
}
}
Expand Down

0 comments on commit d6c5864

Please sign in to comment.