Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5364

USER_NAME variable is not resolved when Clearcase plugin tries to delete a view

    XMLWordPrintable

Details

    Description

      Hello,
      I'm using Clearcase UCM views with the following template : ${USER_NAME}_${JOB_NAME}.
      When I remove a job or rename the clearcase view, the Clearcase plugin attempts to remove the existing view, but it seems to fail because it can't resolve the user name.

      Jan 24, 2010 9:41:03 PM hudson.plugins.clearcase.AbstractClearCaseScm$ItemListenerImpl onDeleted
      WARNING: Failed to remove ClearCase view
      java.io.IOException: CreateProcess: cleartool lsview -l ${USER_NAME}_xxxx error=267
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.(ProcessImpl.java:81)
      at java.lang.ProcessImpl.start(ProcessImpl.java:30)
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
      at hudson.Proc$LocalProc.(Proc.java:149)
      at hudson.Proc$LocalProc.(Proc.java:121)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
      at hudson.Launcher$ProcStarter.start(Launcher.java:268)
      at hudson.plugins.clearcase.HudsonClearToolLauncher.getLaunchedProc(HudsonClearToolLauncher.java:111)
      at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:91)
      at hudson.plugins.clearcase.ClearToolExec.getViewUuid(ClearToolExec.java:287)
      at hudson.plugins.clearcase.AbstractClearCaseScm$ItemListenerImpl.onDeleted(AbstractClearCaseScm.java:551)
      at hudson.model.Hudson.deleteJob(Hudson.java:2002)
      at hudson.model.AbstractItem.delete(AbstractItem.java:270)
      at hudson.model.AbstractItem.doDoDelete(AbstractItem.java:249)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:185)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:500)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:500)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:122)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          I think I figured this out - it was a similar problem to JENKINS-5214, so the same fix should work. I've committed the change, and it'll be in 1.1.2.

          abayer Andrew Bayer added a comment - I think I figured this out - it was a similar problem to JENKINS-5214 , so the same fix should work. I've committed the change, and it'll be in 1.1.2.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          http://jenkins-ci.org/commit/26360
          Log:
          [FIXED JENKINS-5364] Modified to use last build's Computer when deleting/renaming a build due to job changes

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java http://jenkins-ci.org/commit/26360 Log: [FIXED JENKINS-5364] Modified to use last build's Computer when deleting/renaming a build due to job changes

          People

            abayer Andrew Bayer
            vlatombe Vincent Latombe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: