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

Cleartool fatal Error does not fail build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • Jenkins ClearCase Plug-in 1.4
      Jenkins ver. 1.532.1

      Some days ago we upgraded from clearcase plugin 1.3.6 to 1.4.
      We now noticed the following behavior:
      Cleartool stops the update if the configspec is defect (such as a file referenced in load rules does not exist in clearcase) - no file gets updated.
      But Jenkins continues the build with the old files existing in workspace (we use the "use update" function) and reports a green build (if the last build was green).
      This load rule error is fatal and should stop the build.

      SAMPLE:
      Configspec:
      element * CHECKEDOUT
      element * /main/LATEST

      Loadrules:
      \SPCSDev\Tools\jenkins\Testfiles\Samplefile.txt
      \SPCSDev\Tools\jenkins\Testfiles\NotexistingFile.txt

      ==>SampleFile.txt exists in clearcase, NotexistingFile.txt doesnt

      Console out:

      1. Actions taken to update the view:
      2. NonfileError: "cleartool: Error: Unable to lookup "NotexistingFile.txt" in "\SPCSDev\Tools\jenkins\Testfiles@@\main\5": No such file or directory."
        NonfileError: "cleartool: Error: Unable to access "\SPCSDev\Tools\jenkins\Testfiles\NotexistingFile.txt": No such file or directory."
        NonfileError: "cleartool: Error: 1 config spec load rule problems encountered."

      3. Update session status:
      4. EndTime: 2014-02-06T12:05:08+01:00
        BytesCopied: 0
        CancelledByUser: FALSE

      Result:
      Samplefile.txt wasn't updated
      Build gets green.

            Unassigned Unassigned
            tokh Torsten Kühn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: