This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f7830d  scan also for vsnetbeans_x branches
4f7830d is described below

commit 4f7830da3588fd76c69c478dc463c2e76d4d5f16
Author: Eric Barboni <sk...@apache.org>
AuthorDate: Thu Apr 6 11:32:47 2023 +0200

    scan also for vsnetbeans_x branches
---
 vars/asfMainNetBeansBuild.groovy | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy
index b23d2bd..bf80ddc 100644
--- a/vars/asfMainNetBeansBuild.groovy
+++ b/vars/asfMainNetBeansBuild.groovy
@@ -92,9 +92,13 @@ def call(Map params = [:]) {
                         if (!releaseInformation[branch]) {
                             // no branch definined in json exit build
                             if 
(releaseInformation[branch.replace('vsnetbeans_preview_','release')]) {
-                                // branch is release1234
+                                // branch is release1234 for 
vsnetbeans_preview_1237
                                 branch = 
branch.replace('vsnetbeans_preview_','release')
-                            } else {
+                            } else if 
(releaseInformation[branch.replace('vsnetbeans_','release')]) {
+                                // branch is release1234 for vsnetbeans_1237
+                                branch = 
branch.replace('vsnetbeans_','release')
+                            }
+                            else {
                                 // no branch definined in json exit build
                                 currentBuild.result = "FAILURE"
                                 throw new Exception("No entry in json for 
$branch")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to