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 <[email protected]>
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
])
])