You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2020/07/26 20:59:47 UTC
[logging-pipelines] branch master updated: Use shared library
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-pipelines.git
The following commit(s) were added to refs/heads/master by this push:
new 5bae6d4 Use shared library
5bae6d4 is described below
commit 5bae6d481dcfce5a6f2fc38aae28423fcd14eccd
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Jul 26 15:59:36 2020 -0500
Use shared library
---
chainsaw/Jenkinsfile | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/chainsaw/Jenkinsfile b/chainsaw/Jenkinsfile
index c71a87d..7594eb6 100644
--- a/chainsaw/Jenkinsfile
+++ b/chainsaw/Jenkinsfile
@@ -22,9 +22,8 @@ pipeline {
agent {
label 'ubuntu'
}
- tools {
- maven 'Maven 3 (latest)'
- jdk 'JDK 1.8 (latest)'
+ libraries {
+ lib 'logging'
}
options {
ansiColor 'xterm'
@@ -38,16 +37,9 @@ pipeline {
stages {
stage('Build') {
steps {
- // https://issues.jenkins-ci.org/browse/JENKINS-43353
- script {
- def buildNumber = BUILD_NUMBER as int
- if (buildNumber > 1) milestone(buildNumber - 1)
- milestone(buildNumber)
- }
- sh '''
- mvn -Pdevelopment site:site
- mvn -Pdevelopment install
- '''
+ cancelPreviousRunningBuilds()
+ mvn '-Pdevelopment site:site'
+ mvn '-Pdevelopment install'
junit '**/target/surefire-reports/*.xml'
}
}
@@ -56,7 +48,7 @@ pipeline {
branch 'master'
}
steps {
- sh 'mvn -Pdevelopment deploy'
+ mvn '-Pdevelopment -DskipTests deploy'
}
post {
fixed {