Added Jenkinsfile

This commit is contained in:
Chen 2020-03-09 10:22:18 -04:00
parent fb19855733
commit bc67a9733e

56
Jenkinsfile vendored
View file

@ -1,29 +1,33 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn spring-javaformat:apply' sh 'mvn spring-javaformat:apply'
sh './mvnw package' sh './mvnw package'
} }
}
stage('Test') {
steps {
sh 'mvn clean test'
}
}
stage('Package') {
steps {
echo 'Package'
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
echo 'Deploying'
}
}
} }
stage('Test') {
steps {
sh 'mvn clean test'
}
}
stage('Package') {
steps {
echo 'Package'
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
echo 'Deploying'
}
}
}
} }