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/19 19:03:03 UTC
[logging-pipelines] branch master updated: Move milestone sync to
sequential stage
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 c9cbaa2 Move milestone sync to sequential stage
c9cbaa2 is described below
commit c9cbaa2c7ac7d29e0b55fc5643169536e6160eea
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Jul 19 14:02:41 2020 -0500
Move milestone sync to sequential stage
---
log4j/Jenkinsfile | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/log4j/Jenkinsfile b/log4j/Jenkinsfile
index 204bd4a..7acf4dd 100644
--- a/log4j/Jenkinsfile
+++ b/log4j/Jenkinsfile
@@ -44,6 +44,14 @@ pipeline {
// (such as slackSend, mail, etc.)
agent none
stages {
+ stage('Ensure Latest') {
+ // https://issues.jenkins-ci.org/browse/JENKINS-43353
+ script {
+ def buildNumber = BUILD_NUMBER as int
+ if (buildNumber > 1) milestone(buildNumber - 1)
+ milestone(buildNumber)
+ }
+ }
stage('Continuous Integration') {
// https://jenkins.io/doc/book/pipeline/syntax/#parallel
parallel {
@@ -64,12 +72,6 @@ pipeline {
LANG = 'C.UTF-8'
}
steps {
- // https://issues.jenkins-ci.org/browse/JENKINS-43353
- script {
- def buildNumber = BUILD_NUMBER as int
- if (buildNumber > 1) milestone(buildNumber - 1)
- milestone(buildNumber)
- }
// build, test, and deploy snapshots
// note that the jenkins system property is set here to activate certain pom properties in
// some log4j modules that compile against system jars (e.g., log4j-jmx-gui)