diff --git a/Jenkinsfiles/Linux b/Jenkinsfiles/Linux index b93eaa17b..c4fa4eb93 100644 --- a/Jenkinsfiles/Linux +++ b/Jenkinsfiles/Linux @@ -31,10 +31,14 @@ pipeline { } post { always { - sh ''' - cd Jenkinsfiles - vagrant destroy -f - ''' + timeout(time: 10, unit: 'MINUTES') { + sh ''' + cd Jenkinsfiles + vagrant ssh -c "/bin/dmesg" + result=$? + vagrant destroy -f + ''' + } } } } @@ -53,10 +57,14 @@ pipeline { } post { always { - sh ''' - cd Jenkinsfiles - vagrant destroy -f - ''' + timeout(time: 10, unit: 'MINUTES') { + sh ''' + cd Jenkinsfiles + vagrant ssh -c "/bin/dmesg" + result=$? + vagrant destroy -f + ''' + } } } } @@ -75,10 +83,14 @@ pipeline { } post { always { - sh ''' - cd Jenkinsfiles - vagrant destroy -f - ''' + timeout(time: 10, unit: 'MINUTES') { + sh ''' + cd Jenkinsfiles + vagrant ssh -c "/bin/dmesg" + result=$? + vagrant destroy -f + ''' + } } } } @@ -97,32 +109,40 @@ pipeline { } post { always { - sh ''' - cd Jenkinsfiles - vagrant destroy -f - ''' - } - } - } - - stage('Test Group 5') { - steps { - sh "hostname" - timeout(time: 2, unit: 'HOURS'){ + timeout(time: 10, unit: 'MINUTES') { sh ''' - sleep 40 cd Jenkinsfiles - sudo chmod +x test5.sh - ./test5.sh + vagrant ssh -c "/bin/dmesg" + result=$? + vagrant destroy -f ''' } } - post { - always { + } + } + + stage('Test Group 5') { + steps { + sh "hostname" + timeout(time: 2, unit: 'HOURS'){ + sh ''' + sleep 40 + cd Jenkinsfiles + sudo chmod +x test5.sh + ./test5.sh + ''' + } + } + post { + always { + timeout(time: 10, unit: 'MINUTES') { sh ''' cd Jenkinsfiles + vagrant ssh -c "/bin/dmesg" + result=$? vagrant destroy -f ''' + } } } }