From f691278cc41b749410ea6b902da961fb0d5d59af Mon Sep 17 00:00:00 2001 From: kossboii Date: Thu, 4 Jan 2024 18:11:19 -0800 Subject: [PATCH] fix bugs --- .jenkins/filtering_non_cve | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .jenkins/filtering_non_cve diff --git a/.jenkins/filtering_non_cve b/.jenkins/filtering_non_cve new file mode 100644 index 0000000..22e02bf --- /dev/null +++ b/.jenkins/filtering_non_cve @@ -0,0 +1,52 @@ +pipeline { + agent any + + parameters { + string ( + name: 'cves', + defaultValue: '/home/ubuntu/tony/cves', + description: 'the location of the total cve folder' + ), + + + } + + stages { + stage ('Create MongoDB Container') { + steps { + mkdir -p /home/ubuntu/mongo + } + } + + stage ('Running MongoDB Container') { + steps { + sudo docker run -d --name mongo-db -v /home/ubuntu/mongo:/data/db -p 27017:27017 mongo:latest + } + } + } + + post { + always { + + } + success { + // office365ConnectorSend webhookUrl: "${env.TEAMS_URL}" + // message: 'Alerts created and updated.', + // status: 'Success', + // color: '#00FF00' + // cleanWs() + echo "Success" + } + failure { + // office365ConnectorSend webhookUrl: "${env.TEAMS_URL}", + // message: 'Alert create and update failed', + // status: 'Failure', + // color: '#FF0000' + echo "Failure" + } + } +} + +rm -r /home/ubuntu/tony/cve-check-github/have-github +python3 -u multithreading.py ${LC_cves} ${LC_fixed_cve} ${LC_repo_list} ${LC_output} +rm /home/ubuntu/tony/multithreading.py \ No newline at end of file