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

Use 'cleartool setcs -current' instead of 'cleartool update'

    XMLWordPrintable

Details

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

    Description

      ClearCase config specs can include files containing additional rules. When
      updating a view with a config spec containing include statements, the included
      files are not re-evaluated. If an included file has changed the change is only
      seen by ClearCase when the config spec gets re-evaluated. This can be achieved
      by calling:

      cleartool setcs -current

      Since apart from re-evaluating the config spec 'cleartool setcs -current'
      behaves exactly the same as 'cleartool update' i would propose to replace the
      use of 'cleartool update' with 'cleartool setcs -current'.

      Attachments

        Activity

          Code changed in hudson
          User: : vlatombe
          Path:
          http://jenkins-ci.org/commit/29640
          Log:
          Branch for JENKINS-4569, as impact needs to be tested

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : vlatombe Path: http://jenkins-ci.org/commit/29640 Log: Branch for JENKINS-4569 , as impact needs to be tested

          Code changed in hudson
          User: : vlatombe
          Path:
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearCaseDataAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearCasePublisher.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearCaseReportAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearTool.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/PluginImpl.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/UcmView.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/View.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/ChangeLogAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/CheckOutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/DefaultPollAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/DynamicCheckoutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/PollAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/SaveChangeLogAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/SnapshotCheckoutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/UcmDynamicCheckoutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/base/BaseChangeLogAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/history/AbstractHistoryAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/history/HistoryAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ucm/UcmChangeLogAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ucm/UcmCommon.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/ucm/UcmHistoryAction.java
          branches/JENKINS-4569/src/main/java/hudson/plugins/clearcase/util/PathUtil.java
          branches/JENKINS-4569/src/main/resources/hudson/plugins/clearcase/ClearCaseReportAction/index.jelly
          branches/JENKINS-4569/src/main/resources/hudson/plugins/clearcase/ClearCaseSCM/global.jelly
          branches/JENKINS-4569/src/main/resources/hudson/plugins/clearcase/ClearCaseUcmSCM/config.jelly
          branches/JENKINS-4569/src/main/webapp/standardViewPath.html
          branches/JENKINS-4569/src/main/webapp/stream.html
          branches/JENKINS-4569/src/main/webapp/viewpath.html
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/action/DynamicCheckoutActionTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/action/SnapshotCheckoutActionTest.java
          branches/JENKINS-4569/src/test/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutActionTest.java
          http://jenkins-ci.org/commit/29904
          Log:
          [ JENKINS-4569] Use 'cleartool setcs -current' instead of 'cleartool update'

          • User should be able to select a view path different than view tag
          • UCM : After a rebase on stream, view config spec is not updated
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : vlatombe Path: branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearCaseDataAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearCasePublisher.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearCaseReportAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearTool.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearToolExec.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/PluginImpl.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/UcmView.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/View.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/ChangeLogAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/CheckOutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/DefaultPollAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/DynamicCheckoutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/PollAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/SaveChangeLogAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/SnapshotCheckoutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/UcmDynamicCheckoutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/base/BaseChangeLogAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/history/AbstractHistoryAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/history/HistoryAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ucm/UcmChangeLogAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ucm/UcmCommon.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/ucm/UcmHistoryAction.java branches/ JENKINS-4569 /src/main/java/hudson/plugins/clearcase/util/PathUtil.java branches/ JENKINS-4569 /src/main/resources/hudson/plugins/clearcase/ClearCaseReportAction/index.jelly branches/ JENKINS-4569 /src/main/resources/hudson/plugins/clearcase/ClearCaseSCM/global.jelly branches/ JENKINS-4569 /src/main/resources/hudson/plugins/clearcase/ClearCaseUcmSCM/config.jelly branches/ JENKINS-4569 /src/main/webapp/standardViewPath.html branches/ JENKINS-4569 /src/main/webapp/stream.html branches/ JENKINS-4569 /src/main/webapp/viewpath.html branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMDummy.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/action/DynamicCheckoutActionTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/action/SnapshotCheckoutActionTest.java branches/ JENKINS-4569 /src/test/java/hudson/plugins/clearcase/action/UcmSnapshotCheckoutActionTest.java http://jenkins-ci.org/commit/29904 Log: [ JENKINS-4569 ] Use 'cleartool setcs -current' instead of 'cleartool update' User should be able to select a view path different than view tag UCM : After a rebase on stream, view config spec is not updated

          Fixed in trunk the remaining problems. In most cases, the solution is to perform a full update, which triggers a re-evaluation of the config spec from the stream. I preferred this to setcs -stream because update is more flexible.

          vlatombe Vincent Latombe added a comment - Fixed in trunk the remaining problems. In most cases, the solution is to perform a full update, which triggers a re-evaluation of the config spec from the stream. I preferred this to setcs -stream because update is more flexible.

          Code changed in hudson
          User: : vlatombe
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java
          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/ClearToolDynamicUCM.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ConfigSpec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/PluginImpl.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.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/main/java/hudson/plugins/clearcase/util/PathUtil.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.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://jenkins-ci.org/commit/29961
          Log:
          [FIXED - JENKINS-5574] Removing existing snapshot views often fails
          [FIXED - JENKINS-4569] Use 'cleartool setcs -current' instead of 'cleartool update'

          • Better handling of job renaming/deletion and behaviour regarding custom workspace
          • Plugin will be more resilient in case of existing view tag or view path in the way. Instead of failing, it will remove the view tag and/or rename the view path.
          • UCM : view config spec should be more consistently sync'ed with stream
          • Dev : new unit tests to cover addition/removal of load rules on an existing view
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : vlatombe Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java 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/ClearToolDynamicUCM.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ConfigSpec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/PluginImpl.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.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/main/java/hudson/plugins/clearcase/util/PathUtil.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.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://jenkins-ci.org/commit/29961 Log: [FIXED - JENKINS-5574] Removing existing snapshot views often fails [FIXED - JENKINS-4569] Use 'cleartool setcs -current' instead of 'cleartool update' Better handling of job renaming/deletion and behaviour regarding custom workspace Plugin will be more resilient in case of existing view tag or view path in the way. Instead of failing, it will remove the view tag and/or rename the view path. UCM : view config spec should be more consistently sync'ed with stream Dev : new unit tests to cover addition/removal of load rules on an existing view

          Code changed in hudson
          User: : vlatombe
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java
          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/ClearToolDynamicUCM.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ConfigSpec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/PluginImpl.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.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/main/java/hudson/plugins/clearcase/util/PathUtil.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.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://jenkins-ci.org/commit/29961
          Log:
          [FIXED - JENKINS-5574] Removing existing snapshot views often fails
          [FIXED - JENKINS-4569] Use 'cleartool setcs -current' instead of 'cleartool update'

          • Better handling of job renaming/deletion and behaviour regarding custom workspace
          • Plugin will be more resilient in case of existing view tag or view path in the way. Instead of failing, it will remove the view tag and/or rename the view path.
          • UCM : view config spec should be more consistently sync'ed with stream
          • Dev : new unit tests to cover addition/removal of load rules on an existing view
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : vlatombe Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseSCM.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java 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/ClearToolDynamicUCM.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ConfigSpec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/PluginImpl.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/action/AbstractCheckoutAction.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/main/java/hudson/plugins/clearcase/util/PathUtil.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.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://jenkins-ci.org/commit/29961 Log: [FIXED - JENKINS-5574] Removing existing snapshot views often fails [FIXED - JENKINS-4569] Use 'cleartool setcs -current' instead of 'cleartool update' Better handling of job renaming/deletion and behaviour regarding custom workspace Plugin will be more resilient in case of existing view tag or view path in the way. Instead of failing, it will remove the view tag and/or rename the view path. UCM : view config spec should be more consistently sync'ed with stream Dev : new unit tests to cover addition/removal of load rules on an existing view

          People

            vlatombe Vincent Latombe
            ktetzlaff ktetzlaff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: