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 2022/05/06 05:15:18 UTC
[struts] branch master updated: Uses Maven Wrapper in Jenkins pipeline
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 8e49362bf Uses Maven Wrapper in Jenkins pipeline
8e49362bf is described below
commit 8e49362bf85c3e816a436f7e38162b879d513da8
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Fri May 6 07:15:13 2022 +0200
Uses Maven Wrapper in Jenkins pipeline
---
Jenkinsfile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index a49a9517f..bcac8e895 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,12 +39,12 @@ pipeline {
stages {
stage('Build') {
steps {
- sh 'mvn -B clean install -DskipTests -DskipAssembly'
+ sh './mvnw -B clean install -DskipTests -DskipAssembly'
}
}
stage('Test') {
steps {
- sh 'mvn -B test'
+ sh './mvnw -B test'
}
post {
always {
@@ -74,12 +74,12 @@ pipeline {
stages {
stage('Build') {
steps {
- sh 'mvn -B clean install -DskipTests -DskipAssembly'
+ sh './mvnw -B clean install -DskipTests -DskipAssembly'
}
}
stage('Test') {
steps {
- sh 'mvn -B test'
+ sh './mvnw -B test'
}
post {
always {
@@ -94,7 +94,7 @@ pipeline {
}
steps {
withCredentials([string(credentialsId: 'asf-struts-sonarcloud', variable: 'SONARCLOUD_TOKEN')]) {
- sh 'mvn sonar:sonar -DskipAssembly -Dsonar.login=${SONARCLOUD_TOKEN}'
+ sh './mvnw sonar:sonar -DskipAssembly -Dsonar.login=${SONARCLOUD_TOKEN}'
}
}
}
@@ -119,12 +119,12 @@ pipeline {
stages {
stage('Build') {
steps {
- sh 'mvn -B clean install -DskipTests -DskipAssembly'
+ sh './mvnw -B clean install -DskipTests -DskipAssembly'
}
}
stage('Test') {
steps {
- sh 'mvn -B test'
+ sh './mvnw -B test'
// step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'], scm: scm])
}
post {
@@ -142,7 +142,7 @@ pipeline {
dir("local-snapshots-dir/") {
deleteDir()
}
- sh 'mvn -B source:jar javadoc:jar -DskipAssembbly'
+ sh './mvnw -B source:jar javadoc:jar -DskipAssembbly'
}
}
stage('Deploy Snapshot') {
@@ -151,7 +151,7 @@ pipeline {
}
steps {
withCredentials([file(credentialsId: 'lukaszlenart-repository-access-token', variable: 'CUSTOM_SETTINGS')]) {
- sh 'mvn -s \${CUSTOM_SETTINGS} deploy'
+ sh './mvnw -s \${CUSTOM_SETTINGS} deploy'
}
}
}