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

Build flow with parallel jobs requires "read" permissions for Anonymous, fails silently

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: build-flow-plugin
    • Labels:
      None
    • Environment:
      java.runtime.version 1.6.0_26-b03
      os.name Windows 7
      os.arch x86
      Jenkins 1.467 (but tried version before that as well)
    • Similar Issues:

      Description

      Setting up a Build Flow project with the following configuration (tried maybe different combinations of white space/newlines

      parallel (

      { build("Master Wayfinder .NET") }

      ,

      { build("Master Wayfinder Flex") }

      )

      build("Master - Wayfinder Archive")

      When the build starts I get this in the console...
      parallel {
      }
      Trigger job Master - Wayfinder Archive

      So it triggers the last build but doesn't trigger the builds before it.

        Attachments

          Activity

          Hide
          andreyev Andreyev Melo added a comment -

          This happens to me too when using an old Jenkins version, even if I use plugin version 0.3.

          Show
          andreyev Andreyev Melo added a comment - This happens to me too when using an old Jenkins version, even if I use plugin version 0.3.
          Hide
          marathiboy Shailesh Ligade added a comment - - edited

          The same thing happened to me, I even upgrade to latest jenkins, but its not working..

          Show
          marathiboy Shailesh Ligade added a comment - - edited The same thing happened to me, I even upgrade to latest jenkins, but its not working..
          Hide
          piotrb Piotr Banasik added a comment - - edited

          I've been getting this same issue for a while with no solution in sight.

          It seems like parallel just doesn't work. (this is even on version 0.4 that just came out). Any ideas on how to either get around this if its something specific to my setup, or if this is something that's being worked on would be great.

          This is also not windows specific by any means, I'm on Ubuntu.

          Show
          piotrb Piotr Banasik added a comment - - edited I've been getting this same issue for a while with no solution in sight. It seems like parallel just doesn't work. (this is even on version 0.4 that just came out). Any ideas on how to either get around this if its something specific to my setup, or if this is something that's being worked on would be great. This is also not windows specific by any means, I'm on Ubuntu.
          Hide
          vtn Vladimir Turin added a comment -

          It is looks like a permission problem. I need to set Read Job permissions for Anonymous in order to use parallel mechanism.

          Show
          vtn Vladimir Turin added a comment - It is looks like a permission problem. I need to set Read Job permissions for Anonymous in order to use parallel mechanism.
          Hide
          piotrb Piotr Banasik added a comment -

          Hmm .. that seems a bit silly, why should anonymous need elevated privileges if its an internal plugin .. could this be fixed please?

          Show
          piotrb Piotr Banasik added a comment - Hmm .. that seems a bit silly, why should anonymous need elevated privileges if its an internal plugin .. could this be fixed please?
          Hide
          piotrb Piotr Banasik added a comment -

          Seems like a reasonable workaround tho, thanks Vladimir.

          Show
          piotrb Piotr Banasik added a comment - Seems like a reasonable workaround tho, thanks Vladimir.
          Hide
          piotrb Piotr Banasik added a comment -

          Hmm .. is there another permission that needs to be open in order to have the graph thing render? I'm only starting the build for the first time correctly, but its just showing a circle with no jobs or labels or anything, I thought it was supposed to show a chart of the parallel jobs somehow.

          Show
          piotrb Piotr Banasik added a comment - Hmm .. is there another permission that needs to be open in order to have the graph thing render? I'm only starting the build for the first time correctly, but its just showing a circle with no jobs or labels or anything, I thought it was supposed to show a chart of the parallel jobs somehow.
          Hide
          piotrb Piotr Banasik added a comment -

          What is the meaning of the small circle thing? What permission does this need? Or is it a bug?

          Show
          piotrb Piotr Banasik added a comment - What is the meaning of the small circle thing? What permission does this need? Or is it a bug?
          Hide
          vtn Vladimir Turin added a comment -

          I have arrows from a circle to executed jobs (Jenkins 1.472, build-flow 0.4), so it is looks like a bug of your configuration or limitation of current plugin (see #13520 part 2).

          Show
          vtn Vladimir Turin added a comment - I have arrows from a circle to executed jobs (Jenkins 1.472, build-flow 0.4), so it is looks like a bug of your configuration or limitation of current plugin (see #13520 part 2).
          Hide
          marathiboy Shailesh Ligade added a comment -

          I am using 1.471 with plugin 0.3. I have configured 9 parameterized jobs (defaults set). with anonymous access, it works properly with default parameter values. If I migrate plugin to 0.4 it fails as it can't use default parameter..

          Is this plugin supposed to handle parameters? I mean If I make this job parameterized, and set up following way

          parallel (
          { build ( "job1" , p1: "${p1}", p2: "${p2}", p3: "${p3}" ) },
          { build ( "job2" , p1: "${p1}", p2: "${p2}", p3: "${p3}" ) }
          )

          should it work?

          Thanks

          S

          Show
          marathiboy Shailesh Ligade added a comment - I am using 1.471 with plugin 0.3. I have configured 9 parameterized jobs (defaults set). with anonymous access, it works properly with default parameter values. If I migrate plugin to 0.4 it fails as it can't use default parameter.. Is this plugin supposed to handle parameters? I mean If I make this job parameterized, and set up following way parallel ( { build ( "job1" , p1: "${p1}", p2: "${p2}", p3: "${p3}" ) }, { build ( "job2" , p1: "${p1}", p2: "${p2}", p3: "${p3}" ) } ) should it work? Thanks S
          Hide
          vtn Vladimir Turin added a comment -

          I use different parameters in build. It works. The only problem was (in 0.3 version) to get it from parameters of flow. As far as I can see in discussion of plugin (see comments in wiki for Build+Flow+Plugin) the following sting should work in 0.4 version:

          build("paramJob1", PARAM_1:params["BUILD_PARAM"])

          Show
          vtn Vladimir Turin added a comment - I use different parameters in build. It works. The only problem was (in 0.3 version) to get it from parameters of flow. As far as I can see in discussion of plugin (see comments in wiki for Build+Flow+Plugin) the following sting should work in 0.4 version: build("paramJob1", PARAM_1:params ["BUILD_PARAM"] )
          Hide
          dblock Daniel Doubrovkine added a comment -

          Enabling "read job" permissions for Anonymous worked around this for me too.

          Show
          dblock Daniel Doubrovkine added a comment - Enabling "read job" permissions for Anonymous worked around this for me too.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy
          http://jenkins-ci.org/commit/build-flow-plugin/ef1dab2cdc87fc021b97a8aae758a3c1ba9ee312
          Log:
          [FIXED JENKINS-14027]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy http://jenkins-ci.org/commit/build-flow-plugin/ef1dab2cdc87fc021b97a8aae758a3c1ba9ee312 Log: [FIXED JENKINS-14027]

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              muruke Luke Murray
            • Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: