mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
Fixes deploy stage and adds Code Quality step
This commit is contained in:
Vendored
+13
-3
@@ -32,14 +32,24 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Code Quality') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
withSonarQubeEnv('ASF Sonar Analysis') {
|
||||
sh 'mvn -P${JENKINS_PROFILE} sonar:sonar'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build Source & JavaDoc') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
dir("local-snapshots-dir/") {
|
||||
deleteDir()
|
||||
}
|
||||
steps {
|
||||
dir("local-snapshots-dir/") {
|
||||
deleteDir()
|
||||
}
|
||||
sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user