parent
9ece88c000
commit
f691278cc4
@ -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
|
||||
Loading…
Reference in new issue