Skip to content

Commit

Permalink
Move post action
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnikaLau committed Sep 6, 2023
1 parent 7cf436b commit 0a7c9c3
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions testsuite/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ pipeline {
TestBadge.setStatus('passing')
}
}
always {
archiveArtifacts artifacts: '*.log', allowEmptyArchive: true
echo 'Cleaning up workspace'
deleteDir()
}
}
stages {
stage('run tests') {
Expand Down Expand Up @@ -106,28 +111,10 @@ pipeline {
replyTo: '', subject: "Jenkins Job Failure ${NODE_NAME} -> ${env.JOB_NAME}",
to: "${EMAIL_TO_1}";
}

}
always {
archiveArtifacts artifacts: '*.log', allowEmptyArchive: true
echo 'Cleaning up workspace'
deleteDir()
}
}
}
}
post {
failure {
script {
TestBadge.setStatus('failing')
}
}
success {
script {
TestBadge.setStatus('passing')
}
}
}
}
}
}
Expand Down

0 comments on commit 0a7c9c3

Please sign in to comment.