add jenkins file
This commit is contained in:
32
Jenkinsfile
vendored
Normal file
32
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage ('Compile Stage') {
|
||||||
|
|
||||||
|
steps {
|
||||||
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
|
sh 'mvn clean compile'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('Testing Stage') {
|
||||||
|
|
||||||
|
steps {
|
||||||
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
|
sh 'mvn test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
stage ('Deployment Stage') {
|
||||||
|
steps {
|
||||||
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
|
sh 'mvn deploy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user