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 d6c5864 commit d19b280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ pipeline{
stage("Quality Gate"){
steps{
timeout(time: 1, unit: 'HOURS') {

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

0 comments on commit d19b280

Please sign in to comment.