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

requiresWorkspaceForPolling needs to return false when dynamic slaves are used

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      requiresWorkspaceForPolling needs to be able to return false for certain builds which rely on dynamic slaves only.

      To do this I have selected the value when getSlaveClientNameFormat().equals("$

      {basename}

      ") returns true.

      Thus when a build uses a set of dynamic slaves, polling can be done on the master by 'reusing' the same workspace name for all builds, so that this workspace can also be used on the master and the p4 changes will work.

      Supplied patch enables this, and has been tested in a dynamic slave only environment, where no slave is available for polling to run on.

        Attachments

          Activity

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              martinfr62 martinfr62
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: