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
commit 26ae367999e431a65678528e4b6c966c8eaa6be5 Author: Robert Munteanu <[email protected]> AuthorDate: Tue Dec 18 00:06:06 2018 +0100 SLING-7245 - Validate pull requests using Jenkins Configure SCM polling and upstream projects. Note that we can't support downstream projects, as in the old module definition, as it's not part of the API. --- vars/slingOsgiBundleBuild.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy index 0754961..c12ef03 100644 --- a/vars/slingOsgiBundleBuild.groovy +++ b/vars/slingOsgiBundleBuild.groovy @@ -5,7 +5,7 @@ def call(Map params = [:]) { // defaults for the build def jobConfig = [ jdks: [8], - downstreamProjects: [], + upstreamProjects: [], archivePatterns: [], mavenGoal: '', additionalMavenParams: '', @@ -15,11 +15,16 @@ def call(Map params = [:]) { ] def moduleDir = params.containsKey('moduleDir') ? params.moduleDir : '.' + def upstreamProjectsCsv = upstreamProjects ? + upstreamProjects.join(',') : '' node('ubuntu') { properties([ pipelineTriggers([ cron(env.BRANCH_NAME == 'master' ? '@weekly' : '') + pollSCM('* * * * *') + upstream(upstreamProjects: upstreamProjectsCsv, threshold: hudson.model.Result.SUCCESS) + ]) ])
