Skip to content

Commit

Permalink
limited time to perform testing with timeout step (hyperledger#419)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Kononykhin <[email protected]>
  • Loading branch information
andkononykhin authored and ashcherbakov committed Oct 25, 2017
1 parent 16f4ec0 commit be8fb2b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Jenkinsfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,24 @@ for (i = 0; i < _labels.size(); i++) {
// PIPELINE

try {
stage('Static code validation') {
if (config.codeValidation) {
node(labels.linux) {
staticCodeValidation()
timeout(60) {
stage('Static code validation') {
if (config.codeValidation) {
node(labels.linux) {
staticCodeValidation()
}
}
}
}
stage('Build / Test') {
if (config.runTests) {
builds.failFast = config.failFast
parallel builds
stage('Build / Test') {
if (config.runTests) {
builds.failFast = config.failFast
parallel builds
}
}
currentBuild.result = 'SUCCESS'
}
currentBuild.result = 'SUCCESS'
} catch (Exception err) {
println(err.toString())
currentBuild.result = 'FAILURE'
} finally {
stage('Build result notification') {
Expand Down

0 comments on commit be8fb2b

Please sign in to comment.