diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..cd239767f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,34 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + sh './mvnw compile' + } + } + stage('Test') { + steps { + sh './mvnw test' + } + } + stage('Package') { + steps { + sh './mvnw package' + } + } + stage('Deploy') { + when{ + branch 'master' + } + steps { + sh './mvnw deploy' + } + } + } + post { + success { + slackSend(color: 'good', message: "Build Passed Successfully - Question 1 - Michael Teolis (40062906)") + } + } + +} \ No newline at end of file