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

newly created development stream cannot be built

    XMLWordPrintable

Details

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

    Description

      I don't know if this is somehting we should just document, or if we should try
      to fix it.

      Steps:
      1.Join project and create a new development stream using ClearCase Remote Client
      2.Setup a hudson job monitoring the new delvopment stream
      3. Build

      expected result:

      • Project is built

      actual result

      • Build fails because lshistory fails (when building the changelog). The reason
        lshistory fails is that it complains the branch does not exist.

      The underlying reason is that the branch apprently is first created when the
      first change happens on the stream, and so if it is a brand new stream with no
      changes the branch hasn't been created.

      Attachments

        1. HUDSON-1719
          1.0 kB
        2. HUDSON-1719-2
          3 kB
        3. mylyn-context.zip
          14 kB
        4. mylyn-context.zip
          36 kB

        Activity

          Taking this issue.

          I think the clearcase error about the branch not existing should be ignored in this case. There is nothing to report in the change log in this case, and it shouldn't prevent a build

          vlatombe Vincent Latombe added a comment - Taking this issue. I think the clearcase error about the branch not existing should be ignored in this case. There is nothing to report in the change log in this case, and it shouldn't prevent a build

          Patch proposal. I just catch the lshistory call and expect error messages from clearcase to be caught by the caller. So far, to handle change log, these errors are ignored

          vlatombe Vincent Latombe added a comment - Patch proposal. I just catch the lshistory call and expect error messages from clearcase to be caught by the caller. So far, to handle change log, these errors are ignored

          Updated patch with a unit test in case cleartool throws an IOException

          vlatombe Vincent Latombe added a comment - Updated patch with a unit test in case cleartool throws an IOException

          Code changed in hudson
          User: : vlatombe
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java
          http://jenkins-ci.org/commit/31425
          Log:
          [Fixed JENKINS-1719] newly created development stream cannot be built

          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/ClearToolExec.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolExecTest.java http://jenkins-ci.org/commit/31425 Log: [Fixed JENKINS-1719] newly created development stream cannot be built

          Committed in trunk. Will be available in 1.2.1

          vlatombe Vincent Latombe added a comment - Committed in trunk. Will be available in 1.2.1

          People

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

            Dates

              Created:
              Updated:
              Resolved: