initial commit
This commit is contained in:
33
Jenkinsfile
vendored
Normal file
33
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage ('Build') {
|
||||
steps {
|
||||
sh 'mvn -B -DSkipTests clean package'
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Test') {
|
||||
steps {
|
||||
sh 'mvn test'
|
||||
}
|
||||
}
|
||||
|
||||
stage ('Capture') {
|
||||
steps {
|
||||
archiveArtifacts 'target/*.jar'
|
||||
junit 'target/surefire-reports/*.xml'
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
cleanWs()
|
||||
}
|
||||
|
||||
success {
|
||||
echo 'Build Success...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user