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

UCM dynamic view creation parameter doesn't use "stream:"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When "create view if view doesn't exist" is set,
      and UCM dynamic view doesn't exist, then the plugin runs following command:
      [workspace] $ cleartool mkview -stream hudson_stream.test.my_stream@/vobs/project_p -tag hudson_view
      cleartool: Error: Unable to find stream "hudson_stream.test.my_stream@/vobs/project_p".
      cleartool: Error: Cannot attach view to stream "hudson_stream.test.my_stream@/vobs/project_p". FATAL: UCM ClearCase failed. exit code=1

      In fact, "hudson_stream.test." should be replaced by "stream:"

        Attachments

          Activity

          Hide
          jborghi jborghi added a comment -

          The stream "hudson_stream.test.my_stream" would be used if the "Freeze code" option is checked. This is the 'frozen' child stream the build will actually run on. If it does not exist, it is supposed to be created prior to attempting to create the view on it. In the above case, the job name = "test" and the build stream is "my_stream".

          There is a problem with the UcmCommon.isStreamExists() method. It will return 'true' in some conditions even though the stream in fact does not exist. In such a case, the plugin will try to create a view on the non-existent stream and fail with the message as reported.

          Do you happen to have the log prior to the line:
          "[workspace] $ cleartool mkview -stream hudson_stream.test.my_stream@/vobs/project_p -tag hudson_view"

          There should be some commands there regarding an attempt to create this stream.

          I have a fix for the UcmCommon.isStreamExists() method, but would like to confirm this is the same root issue that you are seeing.

          Show
          jborghi jborghi added a comment - The stream "hudson_stream.test.my_stream" would be used if the "Freeze code" option is checked. This is the 'frozen' child stream the build will actually run on. If it does not exist, it is supposed to be created prior to attempting to create the view on it. In the above case, the job name = "test" and the build stream is "my_stream". There is a problem with the UcmCommon.isStreamExists() method. It will return 'true' in some conditions even though the stream in fact does not exist. In such a case, the plugin will try to create a view on the non-existent stream and fail with the message as reported. Do you happen to have the log prior to the line: " [workspace] $ cleartool mkview -stream hudson_stream.test.my_stream@/vobs/project_p -tag hudson_view" There should be some commands there regarding an attempt to create this stream. I have a fix for the UcmCommon.isStreamExists() method, but would like to confirm this is the same root issue that you are seeing.
          Hide
          fchrist fchrist added a comment -

          The 'freeze code' option isn't checked.

          It's not a problem of creating a stream, but of creating a view which is associated to an existing stream.

          Here is the complete log:

          Started by user anonymous
          [hudson_ICTOUCH_WEBAPP_1.0_integration] $ cleartool pwv -root
          /view/hudson_ICTOUCH_WEBAPP_1.0_integration
          [workspace] $ cleartool mount -all
          [workspace] $ cleartool lsview -l hudson_ICTOUCH_WEBAPP_1.0_integration
          cleartool: Error: No matching entries found for view tag "hudson_ICTOUCH_WEBAPP_1.0_integration".
          FATAL: UCM ClearCase failed. exit code=1
          [workspace] $ cleartool mkview -stream hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p -tag hudson_ICTOUCH_WEBAPP_1.0_integration -stgloc ictouch_viewstg
          cleartool: Error: Unable to find stream "hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p".
          cleartool: Error: Cannot attach view to stream "hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p".
          FATAL: UCM ClearCase failed. exit code=1
          cleartool did not return the expected exit code. Command line="mkview -stream hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p -tag hudson_ICTOUCH_WEBAPP_1.0_integration -stgloc ictouch_viewstg", actual exit code=1
          Finished: FAILURE

          Show
          fchrist fchrist added a comment - The 'freeze code' option isn't checked. It's not a problem of creating a stream, but of creating a view which is associated to an existing stream. Here is the complete log: Started by user anonymous [hudson_ICTOUCH_WEBAPP_1.0_integration] $ cleartool pwv -root /view/hudson_ICTOUCH_WEBAPP_1.0_integration [workspace] $ cleartool mount -all [workspace] $ cleartool lsview -l hudson_ICTOUCH_WEBAPP_1.0_integration cleartool: Error: No matching entries found for view tag "hudson_ICTOUCH_WEBAPP_1.0_integration". FATAL: UCM ClearCase failed. exit code=1 [workspace] $ cleartool mkview -stream hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p -tag hudson_ICTOUCH_WEBAPP_1.0_integration -stgloc ictouch_viewstg cleartool: Error: Unable to find stream "hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p". cleartool: Error: Cannot attach view to stream "hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p". FATAL: UCM ClearCase failed. exit code=1 cleartool did not return the expected exit code. Command line="mkview -stream hudson_stream.test.ICTOUCH_WEBAPP_1.0_integration@/vobs/ictouch_p -tag hudson_ICTOUCH_WEBAPP_1.0_integration -stgloc ictouch_viewstg", actual exit code=1 Finished: FAILURE
          Hide
          jborghi jborghi added a comment -

          Got it - definitely a problem! Looks like the dynamic UCM view creation is broken in the 1.2 release where the 'frozen' build stream feature was included. I am working on a fix for several other issues related to the build view, and this problem has been addressed.

          I will be doing an internal release of the modified plugin within our company next week, May 25. I have also discussed with Vincent (plugin owner) and there should be no issue with committing these back and doing subsequent public release.

          As for now, the 'workaround' seems to be to manually create the view before the build runs. Not very automated...

          Show
          jborghi jborghi added a comment - Got it - definitely a problem! Looks like the dynamic UCM view creation is broken in the 1.2 release where the 'frozen' build stream feature was included. I am working on a fix for several other issues related to the build view, and this problem has been addressed. I will be doing an internal release of the modified plugin within our company next week, May 25. I have also discussed with Vincent (plugin owner) and there should be no issue with committing these back and doing subsequent public release. As for now, the 'workaround' seems to be to manually create the view before the build runs. Not very automated...
          Hide
          evernat evernat added a comment -

          Hi jborghi,
          Do you know if this issue has been fixed in the clearcase plugin?
          Thanks

          Show
          evernat evernat added a comment - Hi jborghi, Do you know if this issue has been fixed in the clearcase plugin? Thanks
          Hide
          jborghi jborghi added a comment -

          Hi,
          The clearcase plugin received a significant overhaul/cleanup in version 1.3, and I don't think these issues are relevant anymore. Our group ended up using a local patched copy of the prior version, so I'm not certain, though I do think this problem was fixed. I will check with the current plugin owner if I should close out these issues.

          Show
          jborghi jborghi added a comment - Hi, The clearcase plugin received a significant overhaul/cleanup in version 1.3, and I don't think these issues are relevant anymore. Our group ended up using a local patched copy of the prior version, so I'm not certain, though I do think this problem was fixed. I will check with the current plugin owner if I should close out these issues.
          Hide
          jborghi jborghi added a comment -

          Issue does not appear in current version of plugin. Likely was fixed in the significant code cleanup done in version 1.3.

          Show
          jborghi jborghi added a comment - Issue does not appear in current version of plugin. Likely was fixed in the significant code cleanup done in version 1.3.

            People

            • Assignee:
              jborghi jborghi
              Reporter:
              fchrist fchrist
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: