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:04:05 UTC

[logging-pipelines] branch master updated: Fix syntax error

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 3213ee8  Fix syntax error
3213ee8 is described below

commit 3213ee8ad981823018480e47f466a71c0c53a02b
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Jul 19 14:03:41 2020 -0500

    Fix syntax error
    
    You'd think after all the pipelines I've written, I'd remember how they
    work. This does not seem to be the case. :)
---
 log4j/Jenkinsfile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/log4j/Jenkinsfile b/log4j/Jenkinsfile
index 7acf4dd..02462b7 100644
--- a/log4j/Jenkinsfile
+++ b/log4j/Jenkinsfile
@@ -45,11 +45,13 @@ pipeline {
     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)
+            steps {
+                // 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') {