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

Change set is not correctly calculated after a rebase of the integration stream, case 9489

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The plugin executes the command “cleartool diffbl -pred” to calculate the differences between two consecutive job-runs. Unfortunately, the option -pred doesn’t always take the predecessor from the same stream. More specifically: when the foundation baseline has changed, it takes the new foundation baseline as predecessor, and thus the plugin calculates the difference between the latest baseline on the selected (integration) stream and the new foundation baseline.

      See also the following thread on the ClearCase forum:
      How to compare a baseline with its predecessor on the same stream

      The consequence of this:

      • each time after a rebase of the "monitored" integration stream, it takes many hours before the plugin has calculated the difference between these two baselines (typically a few 1000 files different files in our case).
        The reported difference is actually not what we are interested in. We just want the difference between the latest baseline on the integration stream (which results actually from the rebase), with the last but one baseline (typically just before the rebase).

      Dave-Robinson from IBM has provided in his answer on the clearcase forum a small perl-script to illustrate how this can be achieved with cleartool commands, because there is not out-of-the-box ClearCase option to achieve this.

      Proposed solution:
      I propose to replace the option “-pred” with a calculation of baselines within the same stream (in case there is no previous baseline in the same stream, then comparison should be made with the foundation baseline). If you don’t want to change the current behaviour of the plugin, this could be switched on/off by means of a configuration parameter for the Jenkins plugin.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Wolfgang
          Path:
          src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278.java
          http://jenkins-ci.org/commit/clearcase-ucm-plugin/abfbbce688e3f69b2d9eaa97c11d997b59a8ec8f
          Log:
          JENKINS-18278 Disabled test

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Wolfgang Path: src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278.java http://jenkins-ci.org/commit/clearcase-ucm-plugin/abfbbce688e3f69b2d9eaa97c11d997b59a8ec8f Log: JENKINS-18278 Disabled test
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Wolfgang
          Path:
          src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278.java
          src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278Interproject.java
          http://jenkins-ci.org/commit/clearcase-ucm-plugin/d367d66de5136d42bbc9f72fbc48cea8ca095efe
          Log:
          JENKINS-18278 Fixing the tests

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Wolfgang Path: src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278.java src/test/java/net/praqma/hudson/test/integration/userstories/JENKINS18278Interproject.java http://jenkins-ci.org/commit/clearcase-ucm-plugin/d367d66de5136d42bbc9f72fbc48cea8ca095efe Log: JENKINS-18278 Fixing the tests
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Wolfgang
          Path:
          src/test/java/net/praqma/hudson/test/integration/sibling/BaselinesFound.java
          src/test/resources/setup-interproject.xml
          http://jenkins-ci.org/commit/clearcase-ucm-plugin/ea5d2d65fd7fcf6d0db28f026e539905973b9a70
          Log:
          JENKINS-18278 Correcting error in setup file

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Wolfgang Path: src/test/java/net/praqma/hudson/test/integration/sibling/BaselinesFound.java src/test/resources/setup-interproject.xml http://jenkins-ci.org/commit/clearcase-ucm-plugin/ea5d2d65fd7fcf6d0db28f026e539905973b9a70 Log: JENKINS-18278 Correcting error in setup file
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Wolfgang
          Path:
          pom.xml
          http://jenkins-ci.org/commit/clearcase-ucm-plugin/b62fbc13554a78ccf7b987d6c8066e9856ed0c2c
          Log:
          JENKINS-18278 Reset the group id for release

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Wolfgang Path: pom.xml http://jenkins-ci.org/commit/clearcase-ucm-plugin/b62fbc13554a78ccf7b987d6c8066e9856ed0c2c Log: JENKINS-18278 Reset the group id for release
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Wolfgang
          Path:
          pom.xml
          http://jenkins-ci.org/commit/clearcase-ucm-plugin/d413b232f4a1686f0dd416745f44e0b76f334c56
          Log:
          JENKINS-18278 New version of cool

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Wolfgang Path: pom.xml http://jenkins-ci.org/commit/clearcase-ucm-plugin/d413b232f4a1686f0dd416745f44e0b76f334c56 Log: JENKINS-18278 New version of cool

            People

            Assignee:
            praqma Praqma Support
            Reporter:
            mdeboeck Marc De Boeck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: