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

Unable to claim builds using the build-flow plugin [bis]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • claim-plugin
    • None

      Contrary to the other bug report with the same title, in my case, the claim button doesn't appear at all, so I guess the issue is different.

      Summary: when using a build-flow job instance, the claim button doesn't show up on a build failure. It works on a regular job.

      Jenkins version: 1.575
      Claim version: 2.3

          [JENKINS-24355] Unable to claim builds using the build-flow plugin [bis]

          We were able to solve this by checking the "Build needs workspace" - checkbox. That way the buildflow is created as a AbstractRunner instead of RunExecution (we checked the code).

          Claim-plugin works if buildflow is AbstractRunner, but this is deprecated.

          We even tried to revert from RunExecution to ActractRunner, and then all jobs works with the claim-plugin. Not sure if Claim-plugin should be changed or the BuildFlow update to be visible for the Claim-plugin.

          class FlowRun
          protected class FlyweightTaskRunnerImpl extends RunExecution //Not working with claim
          protected class BuildWithWorkspaceRunnerImpl extends AbstractRunner //Works with claim, this is used when "Build needs workspace" is checked.

          Mattias Persson added a comment - We were able to solve this by checking the "Build needs workspace" - checkbox. That way the buildflow is created as a AbstractRunner instead of RunExecution (we checked the code). Claim-plugin works if buildflow is AbstractRunner, but this is deprecated. We even tried to revert from RunExecution to ActractRunner, and then all jobs works with the claim-plugin. Not sure if Claim-plugin should be changed or the BuildFlow update to be visible for the Claim-plugin. class FlowRun protected class FlyweightTaskRunnerImpl extends RunExecution //Not working with claim protected class BuildWithWorkspaceRunnerImpl extends AbstractRunner //Works with claim, this is used when "Build needs workspace" is checked.

            greybird Arnaud TAMAILLON
            qa_arkena qa arkena
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: