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 4a75ee7  SLING-7245 - Validate pull requests using Jenkins
4a75ee7 is described below

commit 4a75ee7f8a3ccccb8a45ef186e1202fa70cd92a4
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Dec 18 00:06:06 2018 +0100

    SLING-7245 - Validate pull requests using Jenkins
    
    Attempt to read local files from workspace, to set up overrides.
---
 vars/slingOsgiBundleBuild.groovy | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index ce18e17..39e6b54 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -1,5 +1,10 @@
 def call(Map params = [:]) {
     def moduleDir = params.containsKey('moduleDir') ? params.moduleDir : '.'
+    
+    def overrides = readFile('.sling-module.xml')
+    echo "Got overrides ${overrides}"
+    def missingFile = readFile("blah")
+    echo "Got missing file ${missingFile}"
 
     pipeline {
         agent {

Reply via email to