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 21:40:00 UTC

[logging-pipelines] 01/02: Only deploy snapshots on master and release-2.x branches

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

commit b1e637ca5e62280149b24ac70f60379ac5e844f6
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Jul 19 16:38:28 2020 -0500

    Only deploy snapshots on master and release-2.x branches
---
 log4j/Jenkinsfile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/log4j/Jenkinsfile b/log4j/Jenkinsfile
index 58e4f2b..c4db1ff 100644
--- a/log4j/Jenkinsfile
+++ b/log4j/Jenkinsfile
@@ -112,6 +112,13 @@ pipeline {
             }
         }
         stage('Deploy') {
+            // https://www.jenkins.io/doc/book/pipeline/syntax/#when
+            when {
+                anyOf {
+                    branch 'master'
+                    branch 'release-2.x'
+                }
+            }
             steps {
                 sh 'mvn --toolchains toolchains-jenkins-ubuntu.xml -Djenkins deploy'
             }