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

Cleartool error does not abort the build

    XMLWordPrintable

Details

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

    Description

      I'm using UCM clearcase with the clearcase plugin version 1.0.2. For some
      unknown reason, there was a stuck cleartool process for a view. (I only have
      one hudson job using this view and nothing and nobody else was using it).
      Because of this stuck process, cleartool was telling us that "An update is
      already in progress" (see snippet below). However, the build still proceeded.
      The build should be aborted with an error if this happens.

      We only found this issue (which has been occurring for a while) because the
      build was broken and Hudson never told us. This is because Hudson never rebased
      our "qbvision-nms" VOB correctly for quite a while.

      Build output snippet:

      load \qbvision-install
      load \qbvision-nms
      [workspace] $ cleartool update -force -log NUL -add_loadrules rwc467_m1\qbvision-nms
      cleartool: Warning: An update is already in progress for view
      "E:\hudson\jobs\m1\workspace\rwc467_m1".
      Started by 'rwc467@RWC467-03' (process 3312) on 11/4/2009 8:24:59 AM
      Continue, terminating the previous update session? [no] [workspace] $ cleartool
      update -force -log NUL -add_loadrules rwc467_m1\qbvision-install
      cleartool: Warning: An update is already in progress for view
      "E:\hudson\jobs\m1\workspace\rwc467_m1".
      Started by 'rwc467@RWC467-03' (process 3312) on 11/4/2009 8:24:59 AM
      Continue, terminating the previous update session? [no] [rwc467_m1] $ cleartool
      lshistory -all -since 17-nov-09.22:07:07utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\"
      \"%Vn\" \"%e\" \"%o\" \"%[activity]p\" \n%c\n' -branch
      brtype:qbv-main_Integration -nco qbvision-nms qbvision-install
      "20091117.172938" "e65445"
      "E:\hudson\jobs\m1\workspace\rwc467_m1\qbvision-nms\client\core\src\com\quantumbridge\client\core\swing@@

      Attachments

        Activity

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.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/ClearToolSnapshotTest.java
          trunk/hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-update-2.log
          http://fisheye4.cenqua.com/changelog/hudson/?cs=23847
          Log:
          [FIXED JENKINS-4892] Now properly treating failed view updates due to updates already in progress as an error and erroring out of checkout

          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/ClearToolSnapshot.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/ClearToolSnapshotTest.java trunk/hudson/plugins/clearcase/src/test/resources/hudson/plugins/clearcase/ct-update-2.log http://fisheye4.cenqua.com/changelog/hudson/?cs=23847 Log: [FIXED JENKINS-4892] Now properly treating failed view updates due to updates already in progress as an error and erroring out of checkout
          abayer Andrew Bayer added a comment -

          This fix will be in 1.1.

          abayer Andrew Bayer added a comment - This fix will be in 1.1.

          People

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

            Dates

              Created:
              Updated:
              Resolved: