-
My jenkins running on AWS ECS with EFS attached
-
Below is my post build actions
post {
always {
withAWS(region: "us-east-1") {
s3Download (
bucket: "${DDC_WORKING_BUCKET}",
file: 'test-results.zip',
path: "${path}/test-results.zip",
force: true
)
}
unzip(
zipFile: 'test-results.zip',
dir: 'reports'
)
dir('reports') {
script {
report_files = findFiles(glob: '**/*.html').join(',')
}
}
step([$class: 'Publisher', reportFilenamePattern: 'reports/**/target/surefire-reports/testng-results.xml'])
junit allowEmptyResults: true, testResults: 'reports/**/*.xml'
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'reports',
reportFiles: "${report_files}",
reportName: 'Test Results'
]
}
- Console Output(some part ) of the job is
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] findFiles
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // dir
[Pipeline] step
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: reports/**/target/surefire-reports/testng-results.xml
Did not find any matching files.
[Pipeline] junit
Recording test results
None of the test reports contained any result
[Checks API] No suitable checks publisher found.
[Pipeline] publishHTML
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/jenkins_home/jobs/ddc/jobs/ttx/jobs/qa-po-meta-job-Fixes-Ale2/workspace/reports to /var/jenkins_home/jobs/ddc/jobs/ttx/jobs/qa-po-meta-job-Fixes-Ale2/builds/20/htmlreports/Test_20Results
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
-
Mounted the EFS volume to local system and looked for the reports, I couldn't find and reports, only htmlpublisher and some xml files are there.
-
I guess after completing the job workspace is deleting by the pipeline itself so we can't see any content after mounting EFS(Is that assumption is correct?)
What I am doing wrong here?
Aucun commentaire:
Enregistrer un commentaire