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

ClearCase UCM Plugin fails after updating snapshot view

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • clearcase-ucm-plugin
    • None
    • Jenkins 2.176.x
      ClearCase UCM Plugin version 1.7.1

      Snapshot view is successfully updated then plugin errors out. This was working for several months on existing nodes.

      We are seeing: 

       

      Caused: net.praqma.hudson.exception.UnableToInitializeWorkspaceException: Unable to initialize workspace
      
      

       

      Recent changes: a new baseline ("NEW_BASELINE_16@\Projects") was created that contained fewer ClearCase components (folder subtrees that can be baselined and delivered to integration separately) than before and the component dependencies were reduced. Turns out that this baseline could not be used to rebase a child development stream since the components were previously (several years ago) modified in this stream. Therefore the list of component dependencies was re-added back in and a new baseline NEW_BASELINE_18@\Projects was created. This new baseline can be used to rebase streams. Aware of the potential impact to the CCUCM plugin, I manually removed the existing snapshot views on the Jenkins job streams and used a dynamic view to rebase the stream used as a template for newly created views. This did not resolve the problem with the plugin. Since then we've tried renaming the job since it creates ClearCase streams based on the job name, but this did not resolve the problem either.

       

      After the processes described above, the plugin started failing for the project. We have verified that we are able to perform all the operations failing in the plugin directly from the command line.

      A more extensive log with stack trace:

      Log has been written to "C:\<SOMEPATH>\<SOMENAME>.updt". Command: cleartool update -force -overwrite -add_loadrules <I_WILL_OMIT_ALL_THIS> 
      Path: C:\<SOMEPATH>\Build_X\view at net.praqma.util.execute.CommandLine.run(CommandLine.java:138) 
      at net.praqma.util.execute.CommandLine.run(CommandLine.java:53) 
      at net.praqma.clearcase.cleartool.Cleartool._run(Cleartool.java:57) 
      at net.praqma.clearcase.cleartool.Cleartool.run(Cleartool.java:48) 
      at net.praqma.clearcase.ucm.view.UpdateView.update(UpdateView.java:165) 
      Caused: net.praqma.clearcase.exceptions.ViewException: Unable to update view 
      at net.praqma.clearcase.ucm.view.UpdateView.update(UpdateView.java:173) 
      at net.praqma.hudson.remoting.CheckoutTask.makeWorkspace(CheckoutTask.java:193) 
      Caused: net.praqma.hudson.exception.ScmException: Could not update snapshot view 
      at net.praqma.hudson.remoting.CheckoutTask.makeWorkspace(CheckoutTask.java:197) 
      at net.praqma.hudson.remoting.CheckoutTask.invoke(CheckoutTask.java:103) 
      Caused: net.praqma.hudson.exception.UnableToInitializeWorkspaceException: Unable to initialize workspace 
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from <SOME_DOMAIN>/<SOME_IP>:<SOME_PORT> 
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743) 
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357) 
      at hudson.remoting.Channel.call(Channel.java:957) 
      at hudson.FilePath.act(FilePath.java:1070) 
      at hudson.FilePath.act(FilePath.java:1059) 
      at net.praqma.hudson.scm.CCUCMScm.initializeWorkspace(CCUCMScm.java:551) 
      at net.praqma.hudson.scm.CCUCMScm.checkout(CCUCMScm.java:341) 
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) 
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 
      at hudson.model.Run.execute(Run.java:1818) 
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
      at hudson.model.ResourceController.execute(ResourceController.java:97) 
      at hudson.model.Executor.run(Executor.java:429) 
      Caused: java.io.IOException: 
      at net.praqma.hudson.remoting.CheckoutTask.invoke(CheckoutTask.java:128) 
      at net.praqma.hudson.remoting.CheckoutTask.invoke(CheckoutTask.java:35) 
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3050) 
      at hudson.remoting.UserRequest.perform(UserRequest.java:212) 
      at hudson.remoting.UserRequest.perform(UserRequest.java:54) 
      at hudson.remoting.Request$2.run(Request.java:369) 
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 
      at java.util.concurrent.FutureTask.run(Unknown Source) 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93) 
      at java.lang.Thread.run(Unknown Source)
      

            praqma Praqma Support
            awalls Alejandro Jurado Walls
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: