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

Removing view on workspace delete doesn't work if view name contains variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Platform: All, OS: All

      We use variable names in the view name to prevent view name collisions on
      different nodes. When a workspace is "wiped out" via the UI, the clearcase
      plugin tries to issue the rmview command but fails as it can't resolve the build
      variables.

      Here's the logs:

      INFO | jvm 1 | 2009/08/21 14:20:32 | Aug 21, 2009 2:20:32 PM
      hudson.plugins.clearcase.util.BuildVariableResolver resolve
      INFO | jvm 1 | 2009/08/21 14:20:32 | WARNING: Variable name 'NODE_NAME'
      look up failed because of java.lang.NullPointerException
      INFO | jvm 1 | 2009/08/21 14:20:32 | Aug 21, 2009 2:20:32 PM
      hudson.plugins.clearcase.util.BuildVariableResolver resolve
      INFO | jvm 1 | 2009/08/21 14:20:32 | WARNING: Variable name 'JOB_NAME' look
      up failed because of java.lang.NullPointerException
      INFO | jvm 1 | 2009/08/21 14:20:32 | [hudson-slave] $ cleartool rmview
      -force hudson_${NODE_NAME}_${JOB_NAME}
      INFO | jvm 1 | 2009/08/21 14:20:33 | cleartool: Error: Unable to open file
      "hudson_${NODE_NAME}_${JOB_NAME}/.view": No such file or directory.
      INFO | jvm 1 | 2009/08/21 14:20:33 | cleartool: Error:
      hudson_${NODE_NAME}_${JOB_NAME} isn't a view: No such file or directory
      INFO | jvm 1 | 2009/08/21 14:20:33 | cleartool: Error: Unable to remove
      view "hudson_${NODE_NAME}_${JOB_NAME}".
      INFO | jvm 1 | 2009/08/21 14:20:33 | Base ClearCase failed. exit code=1
      INFO | jvm 1 | 2009/08/21 14:20:33 | Aug 21, 2009 2:20:33 PM
      hudson.plugins.clearcase.AbstractClearCaseScm processWorkspaceBeforeDeletion
      INFO | jvm 1 | 2009/08/21 14:20:33 | WARNING: Failed to remove ClearCase view
      INFO | jvm 1 | 2009/08/21 14:20:33 | java.io.IOException: cleartool did not
      return the expected exit code. Command line="rmview -force
      hudson_${NODE_NAME}_${JOB_NAME}", actual exit code=1
      INFO | jvm 1 | 2009/08/21 14:20:33 | at
      hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
      INFO | jvm 1 | 2009/08/21 14:20:33 | at
      hudson.plugins.clearcase.ClearToolSnapshot.rmview(ClearToolSnapshot.java:98)
      INFO | jvm 1 | 2009/08/21 14:20:33 | at
      hudson.plugins.clearcase.AbstractClearCaseScm.processWorkspaceBeforeDeletion(AbstractClearCaseScm.java:422)

            abayer Andrew Bayer
            petehayes Peter Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: