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

cleartool setview not supported on windows environments

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • clearcase-plugin
    • None
    • Platform: All, OS: All

    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

          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)

          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)
          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....

          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....
          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.

          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.

          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)

          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)
          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/

          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/
          redsolo redsolo added a comment -

          Fixed and verified that startview works on windows

          redsolo redsolo added a comment - Fixed and verified that startview works on windows
          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.

          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

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

            Dates

              Created:
              Updated:
              Resolved: