Saturday, September 20, 2008

Changing Subversion credentials in Hudson

I was in a need of changing the Credentials of subversion for a project, unfortunately i was not able to find any straight forward link in manage panel. So the Quick hack to achieve this is:
  1. go to http://[Hudson_Home]/hudson/scm/SubversionSCM/enterCredential
  2. Enter the URL of subversion repository
  3. Click on
  4. Enter User name and password for the repository
  5. press OK
thats it.

2 comments:

  1. I have error on post data -
    No authentication was attemped.
    FAILED: svn: Operation cancelled

    org.tmatesoft.svn.core.SVNCancelException: svn: Operation cancelled
    at hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM.java:1233)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:146)
    at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:71)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:173)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:112)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
    at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:61)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:53)
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88)
    at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
    at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
    at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
    at java.lang.Thread.run(Unknown Source)

    ReplyDelete
  2. @Mikl
    I am sorry man, I might need more information.
    Which version are you using?
    (update to latest is painless, see if it resolve your problem).
    I am a Tester, so any steps to replicate :)?
    (are you being able to checkout and build from any public repo)

    ReplyDelete