update tests and try '--gather-test-outputs-in' for results output instead of redirection.

This commit is contained in:
Kameron Kenny 2024-12-20 09:44:23 -05:00
parent 3614192158
commit 24bba9c4fa
1 changed files with 7 additions and 5 deletions

12
Jenkinsfile vendored
View File

@ -104,10 +104,12 @@ pipeline {
stage('Integration Tests') {
steps {
sh 'mkdir -p test/results/integration'
sh 'bats -F junit --gather-test-outputs-in test/results/integration test/integration/dns/thelinux.pro/*.bat test/integration/dns/thelinux.pro/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration test/integration/dns/kameronkenny.com/*.bat test/integration/dns/kameronkenny.com/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration test/integration/dns/in.thelinuxpro.net/*.bat test/integration/dns/in.thelinuxpro.net/**/*.bat'
sh 'mkdir -p test/results/integration/thelinux.pro'
sh 'mkdir -p test/results/integration/kameronkenny.com'
sh 'mkdir -p test/results/integration/in.thelinuxpro.net'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/thelinux.pro test/integration/dns/thelinux.pro/*.bat test/integration/dns/thelinux.pro/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/kameronkenny.com test/integration/dns/kameronkenny.com/*.bat test/integration/dns/kameronkenny.com/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/in.thelinuxpro.net test/integration/dns/in.thelinuxpro.net/*.bat test/integration/dns/in.thelinuxpro.net/**/*.bat'
}
}
}
@ -115,7 +117,7 @@ pipeline {
post {
always {
archiveArtifacts artifacts: 'test/results/**/*.xml', fingerprint: true
junit 'test/results/**/*.xml'
junit 'test/results/**/**/*.xml'
sh 'rm -rf test/results'
}
}