add capture stage
This commit is contained in:
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@@ -3,7 +3,32 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw -B -DskipTests clean package'
|
sh 'mvn -B -DskipTests clean package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('test') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('capture') {
|
||||||
|
archiveArtifacts 'target/*.jar'
|
||||||
|
junit 'target/surefire-reports/*.xml'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('deploy') {
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
cleanWs()
|
||||||
|
}
|
||||||
|
|
||||||
|
success {
|
||||||
|
echo 'Build success'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user