[evolvis-commits] r17540: Backup commit and fix

papel at evolvis.org papel at evolvis.org
Wed Sep 7 16:53:12 CEST 2011


Author: papel
Date: 2011-09-07 16:53:12 +0200 (Wed, 07 Sep 2011)
New Revision: 17540

Modified:
   branches/evolvis-pa/plugins/jenkins/common/JenkinsPlugin.class.php
Log:
Backup commit and fix

Modified: branches/evolvis-pa/plugins/jenkins/common/JenkinsPlugin.class.php
===================================================================
--- branches/evolvis-pa/plugins/jenkins/common/JenkinsPlugin.class.php	2011-09-07 08:15:42 UTC (rev 17539)
+++ branches/evolvis-pa/plugins/jenkins/common/JenkinsPlugin.class.php	2011-09-07 14:53:12 UTC (rev 17540)
@@ -209,6 +209,8 @@
 		global $gfplugins, $gfconfig, $sys_jenkins_base,
 		    $admin_login, $admin_password;
 
+		$sys_jenkins_base = 'http://test-hudson.bonn.tarent.de:8080';
+
 		$objRefJenkinsInfo = new JenkinsInfo();
 		$this->setObjRefJenkinsInfo(&$objRefJenkinsInfo);
 
@@ -484,14 +486,14 @@
 			if ($permUser->isMember()) {
 				echo '<div class="mainContentBoxes">';
 
-				if ($group->userIsAdmin()) {
+				#if ($group->userIsAdmin()) { does not work in evolvis 5.1 ###ERROR 1###
 					// $group object in /plugins/jenkins/www/index.php
 					// or rather in /www/plugins/jenkins/index.php
 					echo '<div class="smallContentBoxes">';
 					// Only for admins
 					include('jenkinsAdministerAdmin.php');
 					echo "</div>\n";
-				}
+				#}
 
 				if ($this->isProjectApplied($jenkinsProjectList)) {
 					echo '<div class="smallContentBoxes">';
@@ -667,7 +669,8 @@
 
 			$svnPlugin = new SVNPlugin();
 
-			$svnUri = $svnPlugin->getURI($this->getGroup()->getID(), 'ssh', $svnUser);
+			$svnUri = $svnPlugin->getURI($this->getGroup()->getID(), 'ssh', $svnUser); ###ERROR 2###
+			
 			$description = $this->getGroup()->getDescription();
 			$purpose = $this->getGroup()->getRegisterPurpose();
 
@@ -1053,8 +1056,9 @@
 				 */
 
 				$this->setProjectDisabled(true);
-				$this->setProjectFoundInXml(false);
+				
 			}
+			$this->setProjectFoundInXml(false);
 		}
 
 		$this->setJenkinsProjectListAsArray($projectList);



More information about the evolvis-commits mailing list