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/08 15:19:35 UTC
[struts] branch master updated: Adds a step with pushing SNAPSHOT
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 504b791 Adds a step with pushing SNAPSHOT
504b791 is described below
commit 504b7915471102d72b398b176fe62bd19d659f6d
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Sat Feb 8 16:19:26 2020 +0100
Adds a step with pushing SNAPSHOT
---
Jenkinsfile | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 5508f55..5242085 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,6 +11,8 @@ pipeline {
buildDiscarder logRotator(daysToKeepStr: '14', numToKeepStr: '10')
timeout(80)
disableConcurrentBuilds()
+ jiraIssueSelector(issueSelector: [$class: 'DefaultIssueSelector'])
+ tool name: 'JDK 1.8 (latest)', type: 'jdk'
}
triggers {
pollSCM 'H/15 * * * *'
@@ -18,12 +20,12 @@ pipeline {
stages {
stage('Build') {
steps {
- sh 'mvn -B -DskipTests -DskipAssembly clean package'
+ sh './mvnw -B -DskipTests -DskipAssembly clean package'
}
}
stage('Test') {
steps {
- sh 'mvn -B test'
+ sh './mvnw -B test'
}
post {
always {
@@ -31,12 +33,22 @@ pipeline {
}
}
}
+ stage('Build Source & JavaDoc') {
+ when {
+ branch 'master'
+ }
+ steps {
+ sh './mvnw -B source:jar javadoc:jar -DskipWiki'
+ }
+ }
stage('Deploy Snapshot') {
when {
branch 'master'
}
steps {
- sh 'mvn -B deploy'
+ withCredentials([usernamePassword(credentialsId: 'lukaszlenart-access-token-repository', passwordVariable: 'REPO_PASSWORD', usernameVariable: 'REPO_USERNAME')]) {
+ sh './mvnw -B deploy -Dusername=\${REPO_USERNAME} -Dpassword=\${REPO_PASSWORD}'
+ }
}
}
}