sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-tooling-jenkins] branch feature/SLING-7245 updated: SLING-7245 - Validate pull requests using Jenkins
Date Tue, 18 Dec 2018 22:14:44 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


The following commit(s) were added to refs/heads/feature/SLING-7245 by this push:
     new 96d2adc  SLING-7245 - Validate pull requests using Jenkins
96d2adc is described below

commit 96d2adcfa6f3853a3d49eda409ce891edc05a554
Author: Robert Munteanu <rombert@apache.org>
AuthorDate: Tue Dec 18 00:06:06 2018 +0100

    SLING-7245 - Validate pull requests using Jenkins
    
    Rename triggers to jobTriggers to avoid conflict with DSL method.
---
 vars/slingOsgiBundleBuild.groovy | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index da2a505..d1551b4 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -19,17 +19,17 @@ def call(Map params = [:]) {
 
     node('ubuntu') {
 
-        def triggers = [
+        def jobTriggers = [
             pollSCM('* * * * *')
         ]
         if ( env.BRANCH_NAME == 'master' )
-            triggers.add(cron('@weekly'))
+            jobTriggers.add(cron('@weekly'))
         if ( upstreamProjectsCsv )
-            triggers.add(upstream(upstreamProjects: upstreamProjectsCsv, threshold: hudson.model.Result.SUCCESS))
+            jobTriggers.add(upstream(upstreamProjects: upstreamProjectsCsv, threshold: hudson.model.Result.SUCCESS))
 
         properties([
             pipelineTriggers([
-                triggers
+                jobTriggers
             ])
         ])
 


Mime
View raw message