mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
add build stage to Jenkinsfile
This commit is contained in:
parent
eceaf61394
commit
82e86404ce
1 changed files with 18 additions and 2 deletions
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
|
@ -4,12 +4,28 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Checkstyle') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Bulding'
|
|
||||||
checkout scm
|
checkout scm
|
||||||
sh 'mvn checkstyle:checkstyle'
|
sh 'mvn checkstyle:checkstyle'
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
archiveArtifacts artifacts: 'target/checkstyle-result.xml', allowEmptyArchive: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean package -DskipTests'
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue