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

Attaching pdf report format

parent ba8c8b10
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}"
......
......@@ -72,8 +72,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.
Please register or to comment