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

Added logic accepted/know issues during oid validation

parent f9c1ecbe
No related branches found
No related tags found
1 merge request!147Debug paas ci
......@@ -132,14 +132,6 @@ for host,ports in endpoints.items():
task.get_report_info(accepted_issues, known_issues)
accepted_oids += task_accepted_oids
new_oids += task_new_oids
logging.debug("task_accepted_oids")
logging.debug(task_accepted_oids)
logging.debug("task_new_oids")
logging.debug(task_new_oids)
logging.debug("accepted_oids")
logging.debug(accepted_oids)
logging.debug("new_oids")
logging.debug(new_oids)
else:
reports[host] = {'global': {"severity": -1, "threat": f"Scan Error. task.id: {task.id}"} }
......
......@@ -80,8 +80,8 @@ pipeline {
}
post {
failure {
archiveArtifacts artifacts: '*report.pdf', allowEmptyArchive: true
emailext attachmentsPattern: '*report.pdf', body: '$DEFAULT_CONTENT', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER: Vulnerabilities detected!', to: '$RECIPIENTS'
archiveArtifacts artifacts: '*report.pdf, oids.txt', allowEmptyArchive: true
emailext attachmentsPattern: '*report.pdf, oids.txt', body: '$DEFAULT_CONTENT', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER: Vulnerabilities detected!', to: '$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