You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/15 21:27:59 UTC

[sling-tooling-jenkins] 01/02: Add support for jenkins.enableXvfb

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

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

commit 6d8295ecfe3e89ca78a94fcf9909f16cd1ef0307
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Nov 15 23:22:53 2017 +0200

    Add support for jenkins.enableXvfb
---
 create_jobs.groovy | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/create_jobs.groovy b/create_jobs.groovy
index fcd11db..551d63a 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -37,6 +37,12 @@ manifest.project.each { project ->
         createJob = Boolean.valueOf(slingMod.jenkins.enabled.text())
         println "${jobName}: overriding job creation with value ${createJob}"
     }
+
+    if ( slingMod?.jenkins?.enableXvfb ) {
+        module.enableXvfb = Boolean.valueOf(slingMod.jenkins.enableXvfb.text())
+        println "${jobName}: overriding xvfb support with value ${module.enableXvfb}"
+    }
+
     if ( createJob ) {
         modules += module
     }
@@ -109,6 +115,10 @@ for more details</p>''')
                 timeout {
                     elastic(400, 3, 30)
                 }
+
+                if ( module.enableXvfb ) {
+                    xvfb('default')
+                }
             }
 
             blockOnUpstreamProjects()

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.