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

Build will never start when polling Clearcase within quiet period and with no workspace.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      OS: RedHat Enterprise Linux 5 64-bit; Hudson 1.383; Clearcase plugin 1.3.2
    • Similar Issues:
      Show 5 results

      Description

      When there is no workspace (i.e. after renaming a job or wiping out workspace from menu) SCM polling states that there is no workspace, so it schedules the build to get it. Trouble begins when the quiet period is involved.

      My scenario is as follows: SCM polling is set to every 5 minutes and quiet period is 15 minutes. This way I achieve quite stable moment for starting a build (not to get into developer's merge). This works fine if a workspace exists, but when it doesn't, the build waits in the queue indefinitely; every 5 minutes SCM polling states there is no workspace and reports "changes found" to Hudson, which in turn resets the quiet period. This is a no-win situation, the only solution currently is to force build manually.

      I wonder if it is possible to detect whether the build is already in the build queue when polling and report "changes found" with no workspace only when the build is not yet scheduled.

        Attachments

          Activity

          Hide
          raspy Krzysztof Malinowski added a comment -

          After reviewing source code it seems to be general Hudson issue, not specific to Clearcase. Retargeting issue to core.

          Show
          raspy Krzysztof Malinowski added a comment - After reviewing source code it seems to be general Hudson issue, not specific to Clearcase. Retargeting issue to core.
          Hide
          raspy Krzysztof Malinowski added a comment -

          Proposed fix

          Show
          raspy Krzysztof Malinowski added a comment - Proposed fix
          Hide
          dogfood dogfood added a comment -

          Integrated in hudson_main_trunk #393
          [FIXED JENKINS-8007] apply patch from raspy to allow build to start when
          polling interval is shorter than quiet period and we need a build/workspace
          for polling (don't continuously push out the quiet period)

          mindless :
          Files :

          • /trunk/www/changelog.html
          • /trunk/hudson/main/core/src/main/resources/hudson/model/Messages.properties
          • /trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java
          Show
          dogfood dogfood added a comment - Integrated in hudson_main_trunk #393 [FIXED JENKINS-8007] apply patch from raspy to allow build to start when polling interval is shorter than quiet period and we need a build/workspace for polling (don't continuously push out the quiet period) mindless : Files : /trunk/www/changelog.html /trunk/hudson/main/core/src/main/resources/hudson/model/Messages.properties /trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              raspy Krzysztof Malinowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: