Skip to content
Snippets Groups Projects
Commit 608a92d2 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Merge branch 'debug_paas_ci' into 'main'

Attaching pdf report format

See merge request !109
parents bbac03ff fbd4f216
No related branches found
No related tags found
1 merge request!109Attaching pdf report format
......@@ -91,7 +91,7 @@ for host,ports in endpoints.items():
if task.status == 'New':
task.start()
if task.wait(WAIT_TIMEOUT):
task.save_report(ReportFormats.txt, report_filename)
task.save_report(ReportFormats.pdf, report_filename)
reports[host] = task.get_report_info()
else:
reports[host] = f"ERROR Task: {task.id}"
......
......@@ -77,8 +77,8 @@ pipeline {
}
post {
failure {
archiveArtifacts artifacts: '*report.txt', allowEmptyArchive: true
emailext attachmentsPattern: '*report.txt', body: '$DEFAULT_CONTENT', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER: Vulnerabilities detected!', to: '$DEFAULT_RECIPIENTS'
archiveArtifacts artifacts: '*report.pdf', allowEmptyArchive: true
emailext attachmentsPattern: '*report.pdf', body: '$DEFAULT_CONTENT', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER: Vulnerabilities detected!', to: '$DEFAULT_RECIPIENTS'
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment