add simple jenkinsfile

main
kossboii 2 years ago
parent 61ea30a4ee
commit 9ece88c000

@ -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"
}
}
}
Loading…
Cancel
Save