diff --git a/.jenkins/mongodb b/.jenkins/mongodb new file mode 100644 index 0000000..3993916 --- /dev/null +++ b/.jenkins/mongodb @@ -0,0 +1,34 @@ +pipeline { + agent any + + stages { + stage ('Create MongoDB Container') { + mkdir -p /home/ubuntu/mongo + } + + stage ('Running MongoDB Container') { + 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" + } + } +} \ No newline at end of file