You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2020/02/10 07:34:07 UTC
[struts] branch master updated: Adds missing stages section
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/master by this push:
new 17b59fb Adds missing stages section
17b59fb is described below
commit 17b59fb9d5dccbcdcbcf1f8bf908c35bdbef74d8
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Mon Feb 10 08:34:01 2020 +0100
Adds missing stages section
---
Jenkinsfile | 78 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 40 insertions(+), 38 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index f2a20ea..423bc18 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -78,51 +78,53 @@ pipeline {
reuseNode true
}
}
- stage('Build') {
- steps {
- sh 'mvn -B clean package -DskipTests -DskipAssembly'
- }
- }
- stage('Test') {
- steps {
- sh 'mvn -B test'
- step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'], scm: scm])
- }
- post {
- always {
- junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
- junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
+ stages {
+ stage('Build') {
+ steps {
+ sh 'mvn -B clean package -DskipTests -DskipAssembly'
}
}
- }
- stage('Build Source & JavaDoc') {
- when {
- branch 'master'
- }
- steps {
- dir("local-snapshots-dir/") {
- deleteDir()
+ stage('Test') {
+ steps {
+ sh 'mvn -B test'
+ step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'], scm: scm])
+ }
+ post {
+ always {
+ junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
+ junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
+ }
}
- sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
- }
- }
- stage('Deploy Snapshot') {
- when {
- branch 'master'
}
- steps {
- withCredentials([file(credentialsId: 'struts-custom-settings_xml', variable: 'CUSTOM_SETTINGS')]) {
- sh 'mvn -s \${CUSTOM_SETTINGS} deploy -skipAssembly'
+ stage('Build Source & JavaDoc') {
+ when {
+ branch 'master'
+ }
+ steps {
+ dir("local-snapshots-dir/") {
+ deleteDir()
+ }
+ sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
}
}
- }
- stage('Code Quality') {
- when {
- branch 'master'
+ stage('Deploy Snapshot') {
+ when {
+ branch 'master'
+ }
+ steps {
+ withCredentials([file(credentialsId: 'struts-custom-settings_xml', variable: 'CUSTOM_SETTINGS')]) {
+ sh 'mvn -s \${CUSTOM_SETTINGS} deploy -skipAssembly'
+ }
+ }
}
- steps {
- withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) {
- sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}'
+ stage('Code Quality') {
+ when {
+ branch 'master'
+ }
+ steps {
+ withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) {
+ sh 'mvn sonar:sonar -DskipAssembly -Dsonar.projectKey=apache_struts -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_TOKEN}'
+ }
}
}
}