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

Check if view exists before creating

    XMLWordPrintable

Details

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

    Description

      The existing plugin checks for existence of a view storage directory and infers
      the view exists if the directory exists. If the directory does not exist, but
      the view does, the view creation step in the plugin will fail.

      It would be good to check for both the existence of the storage location and the
      view itself, and take appropriate action depending on options and configuration.

      Attachments

        Activity

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearTool.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/SnapshotCheckoutAction.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/SnapshotCheckoutActionTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutActionTest.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=22758
          Log:
          [FIXED JENKINS-4653] Added a check in checkout actions for snapshot views to see whether view tag already exists in the ClearCase region - if so, checkout fails with an appropriate error message

          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 trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearTool.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/SnapshotCheckoutAction.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/SnapshotCheckoutActionTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutActionTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=22758 Log: [FIXED JENKINS-4653] Added a check in checkout actions for snapshot views to see whether view tag already exists in the ClearCase region - if so, checkout fails with an appropriate error message

          People

            abayer Andrew Bayer
            jborghi jborghi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: