Create Jenkinsfile

This commit is contained in:
Hambrsoom Baboyan 2020-03-14 22:35:32 -04:00 committed by GitHub
parent 5c35771a20
commit d3dc93686d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

29
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,29 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building The project'
bat './mvnw package'
}
}
stage('Test'){
steps {
echo 'Running the test in the project'
bat 'mvn clean test'
}
}
stage('package'){
echo 'Packaging stage has been executed"
}
stage('Deploy) {
when {
branch "master" && currentBuild.result == 'SUCCESS'
}
steps {
echo 'Deploying stage has been executed'
bat 'make publish'
}
}
}
}