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

cleartool setview not supported on windows environments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: clearcase-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Hi,

      I've noticed that the current version 0.5 of the clearcase plugin attempts to
      use the 'cleartool setview' command. This command is supported on unix
      environments, but however not on windows..

      The example error is generated:

      started
      [workspace] $ cleartool setview ms3357_build_t4_int_2_dyn
      cleartool: Error: Unrecognized command: "setview"
      FATAL: Base ClearCase failed. exit code=1
      FATAL: cleartool did not return the expected exit code. Command line="cleartool
      setview ms3357_build_t4_int_2_dyn", actual exit code=1
      java.io.IOException: cleartool did not return the expected exit code. Command
      line="cleartool setview ms3357_build_t4_int_2_dyn", actual exit code=1
      at hudson.plugins.clearcase.HudsonClearToolLauncher.run
      (HudsonClearToolLauncher.java:64)
      at hudson.plugins.clearcase.ClearToolDynamic.setView
      (ClearToolDynamic.java:53)
      at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout
      (DynamicCheckoutAction.java:28)
      at hudson.plugins.clearcase.AbstractClearCaseScm.checkout
      (AbstractClearCaseScm.java:133)
      at hudson.plugins.clearcase.AbstractClearCaseScm.checkout
      (AbstractClearCaseScm.java:113)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:566)
      at hudson.model.AbstractBuild$AbstractRunner.checkout
      (AbstractBuild.java:244)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:218)
      at hudson.model.Run.run(Run.java:751)
      at hudson.model.Build.run(Build.java:102)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:71)

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

          Could you check if the startview could replace the setview command? (ie, same command
          line but swap setview with startview)

          Show
          redsolo redsolo added a comment - Could you check if the startview could replace the setview command? (ie, same command line but swap setview with startview)
          Hide
          markschulze markschulze added a comment -

          Hi,

          I think that wouldn't work. I would say that you would need to go back to the
          previous sequence as per your 0.4 release where I assume you were changing
          directory to the absolute path of the view instead of using 'cleartool setview'
          to create the desired view environment.

          ie. on unix,
          cleartool setview a_view
          --> use the view, cleartool describe a_vob

          on windows
          cleartool startview a_view
          v:
          cd \a_view
          --> use the view, cleartool describe a_vob

          Hope this helps....

          Show
          markschulze markschulze added a comment - Hi, I think that wouldn't work. I would say that you would need to go back to the previous sequence as per your 0.4 release where I assume you were changing directory to the absolute path of the view instead of using 'cleartool setview' to create the desired view environment. ie. on unix, cleartool setview a_view --> use the view, cleartool describe a_vob on windows cleartool startview a_view v: cd \a_view --> use the view, cleartool describe a_vob Hope this helps....
          Hide
          redsolo redsolo added a comment -

          Im not following you entirely. Are you saying that the "cleartool startview a_view" must
          be executed in the dynamic view (ie somewhere on the view drive)?

          I had a RFE that needed to execute setview on the dynamic views before they were used.
          After the setview it will continue as before, or am I wrong? I think it is still changing
          to the dynamic view when it is doing the lshistory command.

          Show
          redsolo redsolo added a comment - Im not following you entirely. Are you saying that the "cleartool startview a_view" must be executed in the dynamic view (ie somewhere on the view drive)? I had a RFE that needed to execute setview on the dynamic views before they were used. After the setview it will continue as before, or am I wrong? I think it is still changing to the dynamic view when it is doing the lshistory command.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : redsolo
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearTool.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolDynamic.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/DynamicCheckoutAction.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolDynamicTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/DynamicCheckoutActionTest.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=9041
          Log:
          [clearcase-plugin] Replaced setview with startview as setview is not supported on windows environments (issue #1631)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : redsolo Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearTool.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolDynamic.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/DynamicCheckoutAction.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolDynamicTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/DynamicCheckoutActionTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=9041 Log: [clearcase-plugin] Replaced setview with startview as setview is not supported on windows environments (issue #1631)
          Hide
          redsolo redsolo added a comment -

          Could you please try the latest snapshot (that does startview instead of setview) and
          see if it works better?

          You can download the snapshot at http://hudson.ramfelt.se/job/Hudson%20plugins/org.jvnet.hudson.plugins$clearcase/

          Show
          redsolo redsolo added a comment - Could you please try the latest snapshot (that does startview instead of setview) and see if it works better? You can download the snapshot at http://hudson.ramfelt.se/job/Hudson%20plugins/org.jvnet.hudson.plugins$clearcase/
          Hide
          redsolo redsolo added a comment -

          Fixed and verified that startview works on windows

          Show
          redsolo redsolo added a comment - Fixed and verified that startview works on windows
          Hide
          abayer Andrew Bayer added a comment -

          Bulk-updating all bugs fixed through 0.8.1 to VERIFIED. Part of cleanup for
          0.8.2 release.

          Show
          abayer Andrew Bayer added a comment - Bulk-updating all bugs fixed through 0.8.1 to VERIFIED. Part of cleanup for 0.8.2 release.

            People

            • Assignee:
              redsolo redsolo
              Reporter:
              markschulze markschulze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: