First changes to make the build blue
This commit is contained in:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -1,31 +1,25 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
tools {
|
||||
// Install the Maven version configured as "M3" and add it to the path.
|
||||
maven "maven_jenkins"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ('Compile Stage') {
|
||||
|
||||
steps {
|
||||
withMaven(maven : 'maven_3_5_0') {
|
||||
sh 'mvn clean compile'
|
||||
}
|
||||
sh 'mvn clean compile'
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Testing Stage') {
|
||||
|
||||
steps {
|
||||
withMaven(maven : 'maven_3_5_0') {
|
||||
sh 'mvn test'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage ('Deployment Stage') {
|
||||
stage ('Installing Stage') {
|
||||
steps {
|
||||
withMaven(maven : 'maven_3_5_0') {
|
||||
sh 'mvn deploy'
|
||||
}
|
||||
sh 'mvn install'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user