Skip to content

Commit

Permalink
Update Jenkinsfile (Mission 12 - adding timeout as per script2)
Browse files Browse the repository at this point in the history
  • Loading branch information
huskyrat authored Sep 18, 2024
1 parent ed10ca9 commit d824006
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This adds a quality gate that aborts the pipeline if the quality threshold isn't met
pipeline {
agent any

Expand All @@ -15,8 +16,11 @@ pipeline {
steps {
withSonarQubeEnv('sonar-qube-1') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
timeout(time: 10, unit: 'MINUTES'){
waitForQualityGate abortPipeline: true
}
}
}
}
}
}

0 comments on commit d824006

Please sign in to comment.