[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [websites/build-kde-org/sok-work] /: Fix the bzaar plugin code.
From:       Scarlett Clark <scarlett () scarlettgatelyclark ! com>
Date:       2015-04-01 0:18:22
Message-ID: E1Yd6MQ-0005B8-9l () scm ! kde ! org
[Download RAW message or body]

Git commit c95f7b3406439572636f942607188c734d9530e6 by Scarlett Clark.
Committed on 01/04/2015 at 00:17.
Pushed by scarlettclark into branch 'sok-work'.

Fix the bzaar plugin code.

M  +1    -1    base.groovy
M  +2    -3    helpers/ProjectSCMHelpers.groovy

http://commits.kde.org/websites/build-kde-org/c95f7b3406439572636f942607188c734d9530e6

diff --git a/base.groovy b/base.groovy
index d7e1193..7a2f573 100644
--- a/base.groovy
+++ b/base.groovy
@@ -235,7 +235,7 @@ while(projects.hasNext()) {
 			configure createGitSCM(jobname, "${repo}", "${branch}", redmine)
 		} else if (repo =~ "svn:/")	{
 			configure createSVNSCM(repo)
-		} else if (repo =~ "lp:/")	{
+		} else if (repo =~ "lp:")	{
 			configure createBzrSCM(repo)
 		}	
 		//Run the parent on a LINBUILDER
diff --git a/helpers/ProjectSCMHelpers.groovy b/helpers/ProjectSCMHelpers.groovy
index e44e288..2fae7ee 100644
--- a/helpers/ProjectSCMHelpers.groovy
+++ b/helpers/ProjectSCMHelpers.groovy
@@ -77,11 +77,10 @@ class ProjectSCMHelpers {
 				}
 		}		
 	}
-	static Closure createBzrSCM(String bzrurl) {
-		//TO-DO
+	static Closure createBzrSCM(String bzrurl) {	
 		return { project ->
 		project.name = 'matrix-project'
-		project << scm (class:"hudson.plugins.bazaar.BazaarSCM") {
+		project / scm(class: 'hudson.plugins.bazaar.BazaarSCM') {
 			source "${bzrurl}"
 			cleantree false
 			checkout false
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic