Re: Guest security in 1.1-beta-3
Look at this file (http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-security/src/main/resources/META-INF/redback/redback.xml), it defines all roles and inheritence between each roles. If you write a patch, I don't think it will be in 1.1 but you'll have it for your instance. Emmanuel Tom Schneider a écrit : Could this be split out, or is it too late for 1.1 series? I'd be willing to create a patch if I can figure it out. This is a critical enough issue for us that I'm considering taking another look at hudson. Tom Emmanuel Venisse wrote: Tom Schneider a écrit : I'd like to configure the guest account in Continuum 1.1-beta-3 to work like it did in 1.0.3. The guest account should only be able to see the projects and kick off a build manually, but not add a project or do any other administrative tasks. (Essentially the guest behavior in 1.0.3) Is there a way to do this? None of the built-in roles support this subset of access. From what I can tell, the role 'Continuum Group Project User' allows a user to see the projects, but not kick off a build manually. The role 'Continuum Group Project Developer' allows a user to kick off a build, but also to added new poms and other stuff that I don't want guest to do. The build role is a part of the project group developer and can't be split. Emmanuel
Re: Continuum under Tomcat CVS
I'm sorry for late response, but I was away from town. I'd tried new continuum beta3, but connection to CVS is not still working, Tomcat user has its home directory with ssh configuration. It's environmet varible CVS_RSH is correctly set to 'ssh', this command is available on PATH. When I try to use username/password authentication I get following error: 2007-10-10 08:36:04,837 [pool-1-thread-1] INFO BuildController:default- Starting build of TIF Utils 2007-10-10 08:36:04,873 [pool-1-thread-1] INFO BuildController:default- Purging exiting working copy 2007-10-10 08:36:04,873 [pool-1-thread-1] INFO BuildController:default- Performing action clean-working-directory 2007-10-10 08:36:04,875 [pool-1-thread-1] INFO BuildController:default- Updating working dir 2007-10-10 08:36:04,875 [pool-1-thread-1] INFO BuildController:default- Performing action check-working-directory 2007-10-10 08:36:04,877 [pool-1-thread-1] INFO BuildController:default- Performing action checkout-project 2007-10-10 08:36:04,882 [pool-1-thread-1] INFO ContinuumScm:default - Checking out project: 'TIF Utils', id: '1' to '/var/lib/tomcat-5. 5/webapps/continuum/WEB-INF/working-directory/1'. 2007-10-10 08:36:04,883 [pool-1-thread-1] INFO ScmManager:default - Executing: /bin/sh -c cd /var/lib/tomcat-5.5/webapps/continuum/W EB-INF/working-directory cvs -z3 -f -d :ext:[EMAIL PROTECTED]:/cvs -q checkout -d 1 TIF_Utils 2007-10-10 08:36:04,883 [pool-1-thread-1] INFO ScmManager:default - Working directory: /var/lib/tomcat-5.5/webapps/continuum/WEB-INF/ working-directory java.lang.IllegalArgumentException: password argument is null at ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307) at org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:122) at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:164) at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:475) at org.apache.maven.scm.provider.cvslib.cvsjava.command.checkout.CvsJavaCheckOutCommand.executeCvsCommand(CvsJavaCheckOutCommand.java:50) at org.apache.maven.scm.provider.cvslib.command.checkout.AbstractCvsCheckOutCommand.executeCheckOutCommand(AbstractCvsCheckOutCommand.java :83) at org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(AbstractCheckOutCommand.java:49) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58) at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:521) at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.checkout(AbstractCvsScmProvider.java:595) at org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:444) at org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:399) at org.apache.maven.scm.provider.AbstractScmProvider.checkOut(AbstractScmProvider.java:382) at org.apache.maven.continuum.scm.DefaultContinuumScm.checkOut(DefaultContinuumScm.java:136) at org.apache.maven.continuum.core.action.CheckoutProjectContinuumAction.execute(CheckoutProjectContinuumAction.java:91) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:417) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.updateWorkingDirectory(DefaultBuildController.java:400) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:112) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:595) 2007-10-10 08:36:05,043 [pool-1-thread-1] WARN ContinuumScm:default - Error while checking out the code for project: 'TIF Utils', id: ' 1' to '/var/lib/tomcat-5.5/webapps/continuum/WEB-INF/working-directory/1'. 2007-10-10 08:36:05,043 [pool-1-thread-1] WARN
Howto backup of Continuum?
Hi! What is the simplest approach to backup Continuum? We are currently using 1.1-beta-3 on a Debian Etch server. -- Regards Erik Drolshammer
Re: writing a notifier
Michael Masters a écrit : I have a whole new set of questions now :) I am using continuum Version 1.1-beta-3. I have jar'ed up my code and added the jar to apps/continuum/webapp/WEB-INF/lib/. I have used the web interface to continuum to set up the IRC notifier and that is working. I don't see how to configure the project to call my notifier. If you added a irc notifier to your project group or your project, it will be used by continuum for each build. You don't need more configuration. Also, can you provide some insight on what I need to do to get a gui set up for my notifier. I assume this also requires some additional configuration to persist values. To add a notifier in the UI, you can follow this steps: - modify WEB-INF/jsp/notifier/notifierSelectType.jsp to add your notifier in the select field, the key is the role_hint of your component(rally-continuum) - In WEB-INF/classes/xwork.xml, add a new result in addProjectNotifier and in addProjectGroupNotifier actions (result name=rally-continuum_input/WEB-INF/jsp/notifier/notifierRally.jsp/result) - Create the jsp WEB-INF/jsp/notifier/notifierRally.jsp - Create IrcProjectNotifierEditAction and IrcGroupNotifierEditAction classes with edit and save methods - Declare edit and save actions for the group in xwork.xml: action name=rallyProjectGroupNotifierEdit class=rallyGroupNotifierEdit method=edit result name=success/WEB-INF/jsp/notifier/notifierRally.jsp/result /action action name=rallyProjectGroupNotifierSave class=rallyGroupNotifierEdit method=save result name=input/WEB-INF/jsp/notifier/notifierRally.jsp/result result name=success type=chainprojectGroupNotifier/result /action - Add result name=rally-component_input type=chainrallyProjectGroupNotifierEdit/result in editProjectGroupNotifier action in xwork.xml - Declare edit and save actions for the project in xwork.xml: action name=rallyProjectNotifierEdit class=rallyNotifierEdit method=edit result name=success/WEB-INF/jsp/notifier/notifierRally.jsp/result /action action name=rallyProjectNotifierSave class=rallyNotifierEdit method=save result name=success type=chainprojectView/result result name=to_group_page type=chainprojectGroupNotifier/result /action - Add result name=rally-component_input type=chainrallyProjectNotifierEdit/result in editProjectNotifier action in xwork.xml - Restart Continuum Emmanuel Thanks in advance, Mike Masters ## # I have created the following test class: ## package com.rallydev.integration.build.continuum; import org.apache.maven.continuum.notification.AbstractContinuumNotifier; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; public class RallyContinuumNotifier extends AbstractContinuumNotifier { public void sendNotification( String source, Set recipients, Map configuration, Map context ) { getLogger().info(THIS IS MY TEST from sendNotification 4 arg); } public void sendNotification( String arg0, Set arg1, Properties arg2 ) { getLogger().info(THIS IS MY TEST from sendNotification 3 arg); } } ## # I have the following in apps/continuum/conf/application.xml ## application services service idjetty/id configuration webapps webapp file${plexus.home}/lib/continuum-webapp-1.1-beta-3.war/file context/continuum/context extraction-path${plexus.home}/webapp/extraction-path standardWebappClassloadertrue/standardWebappClassloader listeners http-listener port${jetty.port}/port /http-listener !-- proxy-http-listener port8090/port proxy-hostlocalhost/proxy-host proxy-port80/proxy-port /proxy-http-listener -- /listeners /webapp /webapps /configuration /service /services components !-- | The rally notifier |-- component roleorg.codehaus.plexus.notification.notifier.Notifier/role role-hintrally-continuum/role-hint implementationcom.rallydev.integration.build.continuum.RallyContinuumNotifier/implementation requirements requirement /requirement /requirements configuration alwaysSendtrue/alwaysSend /configuration /component /components /application On Oct 5, 2007, at 1:15 AM, Emmanuel Venisse wrote: Michael Masters a écrit : I've looked at JabberContinuumNotifier and I have some questions on how I create my own notifier. 1. Once I write my