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


The following commit(s) were added to refs/heads/master by this push:
     new fde0a6b  SLING-7579 - Add support for building pipeline projects
fde0a6b is described below

commit fde0a6b40b60b8d98bd0cb7fe22e3f533a4261d0
Author: Robert Munteanu <romb...@apache.org>
AuthorDate: Thu Apr 12 17:00:46 2018 +0300

    SLING-7579 - Add support for building pipeline projects
    
    Fix syntax error
---
 create_jobs.groovy | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/create_jobs.groovy b/create_jobs.groovy
index 0582f2d..1f4f740 100644
--- a/create_jobs.groovy
+++ b/create_jobs.groovy
@@ -20,12 +20,10 @@ manifest.project.each { project ->
 
     def module = [ location: jobName ]
 
-    try {
-        def connection = new URL(rawUrlPrefix + "/" + jobName + 
"/master/Jenkinsfile")
-        module.pipeline = connection.responseCode == 200
-        if ( module.pipeline ) {
-            println "${jobName}: Jenkinsfile found, creating pipeline job"
-        }
+    def connection = new URL(rawUrlPrefix + "/" + jobName + 
"/master/Jenkinsfile")
+    module.pipeline = connection.responseCode == 200
+    if ( module.pipeline ) {
+        println "${jobName}: Jenkinsfile found, creating pipeline job"
     }
 
     if ( slingMod?.jenkins?.jdks ) {

-- 
To stop receiving notification emails like this one, please contact
romb...@apache.org.

Reply via email to