Skip to content

Commit

Permalink
dmesg output at end of job (#13)
Browse files Browse the repository at this point in the history
Try to get dmesg in post section of CI/vagrant job
  • Loading branch information
dcowhig authored and donporter committed Jan 17, 2020
1 parent d779948 commit d58ec6e
Showing 1 changed file with 49 additions and 29 deletions.
78 changes: 49 additions & 29 deletions Jenkinsfiles/Linux
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
}
}
}
}
Expand All @@ -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
'''
}
}
}
}
Expand All @@ -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
'''
}
}
}
}
Expand All @@ -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
'''
}
}
}
}
Expand Down

0 comments on commit d58ec6e

Please sign in to comment.