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

Polling not working as intended

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • clearcase-plugin
    • None
    • Platform: Other, OS: Linux

    Description

      The polling is finding changes, reporting them to me, and then tells me there
      are no changes and does not perform a build. Its the NO CHANGES at the end that
      gets me going - since it just told me about 1000 changes before it said there
      were none... This was working ok in a previous version of the plugin - not sure
      what changed... We saw this just as we were showing hudson to a director (to
      propose its use as our CI system)...

      Anyhow, its probably a simple change that needs to be made from either our end
      or yours - but I dont know what that change would be.

      $ head scm-polling.log
      Started on May 11, 2009 1:49:14 PM
      [hudson_EDT_EOS_WEB4.5_integration_snapshot] $ cleartool lshistory -r -since
      7-may-09.20:38:29utc+0000 -fmt '"\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\"
      \"%[activity]p\" \n%c\n"' -branch brtype:EDT_EOS_WEB4.5_integration -nco
      cc/ISG_FET/EOSWEB
      ""20090511.115012" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/UserStrategyLegVO.java"
      "/main/EDT_EOS_WEB4.5_integration/3" "create version" "checkin" "CQPRD00318637"

      """20090511.115012" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/UserStrategyVO.java"
      "/main/EDT_EOS_WEB4.5_integration/3" "create version" "checkin" "CQPRD00318637"

      """20090511.115012" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/busobj/StrategyProductProvider.java"
      "/main/EDT_EOS_WEB4.5_integration/8" "create version" "checkin" "CQPRD00318637"

      """20090511.115012" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/model/Side.java"
      "/main/EDT_EOS_WEB4.5_integration/2" "create version" "checkin" "CQPRD00318637"

      .......

      $ tail scm-polling.log
      """20090507.162818" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/resources/com/cme/fet/eos/client/strategy/xml/strategy.xml"
      "/main/EDT_EOS_WEB4.5_integration/10" "create version" "checkin" "CQPRD00317796"

      """20090507.162818" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/xml/XMLStrategyParser.java"
      "/main/EDT_EOS_WEB4.5_integration/7" "create version" "checkin" "CQPRD00317796"

      """20090507.162818" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/java/com/cme/fet/eos/client/strategy/xml/TagConstants.java"
      "/main/EDT_EOS_WEB4.5_integration/3" "create version" "checkin" "CQPRD00317796"

      """20090507.162818" "X00467"
      "cc/ISG_FET/EOSWEB/eos-trader-client/src/main/resources/com/cme/fet/eos/client/strategy/xml/strategy.xsd"
      "/main/EDT_EOS_WEB4.5_integration/4" "create version" "checkin" "CQPRD00317796"

      "Done. Took 8.1 sec
      No changes

      Attachments

        Activity

          kboyce kboyce added a comment -

          Was finally able to get the patch inside. It appears to be working! THANKS!
          It detected changes and the polling log says "Changes found" and after the quiet
          period the build kicked off automatically.

          kboyce kboyce added a comment - Was finally able to get the patch inside. It appears to be working! THANKS! It detected changes and the polling log says "Changes found" and after the quiet period the build kicked off automatically.
          abayer Andrew Bayer added a comment -

          I've attached a private build with the fix I just checked in - it should now
          ignore a leading backslash (or leading Windows drive) for this particular
          scenario. Give it a shot and let me know how it works.

          abayer Andrew Bayer added a comment - I've attached a private build with the fix I just checked in - it should now ignore a leading backslash (or leading Windows drive) for this particular scenario. Give it a shot and let me know how it works.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.java
          trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/base/BaseChangeLogActionTest.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=22708
          Log:
          JENKINS-3666 Sorta - fixing a particular use-case where the slave itself is running in a setview and so the file path starts with a slash or Windows path, rather than the extended view path as we would expect. Also some cleanup, and fixing a test failure.

          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/AbstractClearCaseScm.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolExec.java trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearToolSnapshot.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/ClearToolSnapshotTest.java trunk/hudson/plugins/clearcase/src/test/java/hudson/plugins/clearcase/base/BaseChangeLogActionTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=22708 Log: JENKINS-3666 Sorta - fixing a particular use-case where the slave itself is running in a setview and so the file path starts with a slash or Windows path, rather than the extended view path as we would expect. Also some cleanup, and fixing a test failure.
          abayer Andrew Bayer added a comment -

          Created an attachment (id=947)
          1.0.3-SNAPSHOT, with fix for when slave is run in setview

          abayer Andrew Bayer added a comment - Created an attachment (id=947) 1.0.3-SNAPSHOT, with fix for when slave is run in setview
          kboyce kboyce added a comment -

          OK thanks. Building on a timed basis works OK for now but ultimately we would
          like to have it build on checkin so that is can email developers when it breaks.
          We are in the process of replacing CruiseConrol with Hudson and so far I really
          like Hudson much better. ClearCase does make things more complicated. For
          CruiseControl I had to set to the view before staring it so that the hardcoded
          /vobs would work (ugly).

          kboyce kboyce added a comment - OK thanks. Building on a timed basis works OK for now but ultimately we would like to have it build on checkin so that is can email developers when it breaks. We are in the process of replacing CruiseConrol with Hudson and so far I really like Hudson much better. ClearCase does make things more complicated. For CruiseControl I had to set to the view before staring it so that the hardcoded /vobs would work (ugly).

          People

            praqma Praqma Support
            rlyons_cme rlyons_cme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: