Merge pull request #3 from hanzalawebdev/feat/unit-tests
Update Jenkinsfile
This commit is contained in:
commit
27c8399afa
|
|
@ -42,16 +42,16 @@ pipeline {
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
junit '**/reports/junit.xml'
|
||||||
|
archiveArtifacts artifacts: 'reports/**', fingerprint: true
|
||||||
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
|
cleanWs(cleanWhenNotBuilt: false, notFailBuild: true)
|
||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo 'Build completed successfully!'
|
echo 'Build completed successfully!'
|
||||||
junit '**/reports/junit.xml'
|
|
||||||
archiveArtifacts artifacts: 'reports/**', fingerprint: true
|
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'Build failed!'
|
echo 'Build failed!'
|
||||||
junit '**/reports/junit.xml'
|
junit '**/reports/junit.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue