You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by vo...@apache.org on 2021/02/02 15:13:14 UTC
[myfaces] 01/01: Fix JenkinsFile
This is an automated email from the ASF dual-hosted git repository.
volosied pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git
commit 2f70ce1841de3a6b6579ee1bdef4dc7d773b4fad
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Tue Feb 2 10:08:23 2021 -0500
Fix JenkinsFile
---
Jenkinsfile | 60 +++++++++++++++++++++++++++++++-----------------------------
1 file changed, 31 insertions(+), 29 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 73bbf8c..fe9c7a1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -32,38 +32,40 @@ pipeline {
pollSCM('@hourly')
}
- stage ('Build and Test - Java 8') {
- options {
- timeout(time: 4, unit: 'HOURS')
- retry(2)
- }
- steps {
- sh 'mvn -V clean verify checkstyle:check apache-rat:check'
- }
- post {
- always {
- junit '**/target/surefire-reports/*.xml'
- deleteDir()
+ stages {
+ stage ('Build and Test - Java 8') {
+ options {
+ timeout(time: 4, unit: 'HOURS')
+ retry(2)
+ }
+ steps {
+ sh 'mvn -V clean verify checkstyle:check apache-rat:check'
+ }
+ post {
+ always {
+ junit '**/target/surefire-reports/*.xml'
+ deleteDir()
+ }
}
}
- }
- stage ('Deploy') {
- options {
- timeout(time: 2, unit: 'HOURS')
- retry(2)
- }
- tools {
- maven "maven_latest"
- jdk "jdk_8_latest"
- }
- steps {
- sh "mvn clean deploy -Pgenerate-assembly"
- }
- post {
- always {
- junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
- archiveArtifacts '**/target/*.jar'
+ stage ('Deploy') {
+ options {
+ timeout(time: 2, unit: 'HOURS')
+ retry(2)
+ }
+ tools {
+ maven "maven_latest"
+ jdk "jdk_1.8_latest"
+ }
+ steps {
+ sh "mvn clean deploy -Pgenerate-assembly"
+ }
+ post {
+ always {
+ junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
+ archiveArtifacts '**/target/*.jar'
+ }
}
}
}