limited time to perform testing with timeout step
@@ -197,6 +197,7 @@ for (i = 0; i < _labels.size(); i++) {
// PIPELINE
try {
+ timeout(90) {
stage('Static code validation') {
if (config.codeValidation) {
node(labels.linux) {
@@ -211,7 +212,9 @@ try {
}
}
currentBuild.result = 'SUCCESS'
+ }
} catch (Exception err) {
+ println(err.toString())
currentBuild.result = 'FAILURE'
} finally {
stage('Build result notification') {
