main
kossboii 2 years ago
parent f691278cc4
commit d3c9001945

@ -6,9 +6,7 @@ pipeline {
name: 'cves', name: 'cves',
defaultValue: '/home/ubuntu/tony/cves', defaultValue: '/home/ubuntu/tony/cves',
description: 'the location of the total cve folder' description: 'the location of the total cve folder'
), )
} }
stages { stages {

@ -3,13 +3,17 @@ pipeline {
stages { stages {
stage ('Create MongoDB Container') { stage ('Create MongoDB Container') {
steps {
mkdir -p /home/ubuntu/mongo mkdir -p /home/ubuntu/mongo
} }
}
stage ('Running MongoDB Container') { stage ('Running MongoDB Container') {
steps {
sudo docker run -d --name mongo-db -v /home/ubuntu/mongo:/data/db -p 27017:27017 mongo:latest sudo docker run -d --name mongo-db -v /home/ubuntu/mongo:/data/db -p 27017:27017 mongo:latest
} }
} }
}
post { post {
always { always {

Loading…
Cancel
Save