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

Unable to add nested conditional steps

    Details

    • Type: New Feature
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      New docker container of jenkins:alpine 2.46.3
      conditional build step 1.3.6
    • Similar Issues:

      Description

      I noticed the other day that I am unable to add a conditional build step as a step to a conditional build step (ie. nested conditional build steps).

      I've actually been doing nested conditional build steps for over a year using the job dsl plugin without issue.  Sometimes, 4 levels deep.

      Steps to reproduce:

      1. Create a new freestyle job
      2. add a new 'conditional steps (multiple)' build step.
      3. click 'add step to condition' and then notice there is no option to add 'conditional steps (multiple)'

       

        Attachments

          Activity

          Hide
          jalberts John Alberts added a comment -

          I noticed the type was changed from 'bug' to 'new feature'.  Does this mean that it was not intentional that nested conditional build steps works flawlessly when configured without the UI?  This seems like it is a UI bug since it works without the UI.

           

          Show
          jalberts John Alberts added a comment - I noticed the type was changed from 'bug' to 'new feature'.  Does this mean that it was not intentional that nested conditional build steps works flawlessly when configured without the UI?  This seems like it is a UI bug since it works without the UI.  
          Hide
          imod Dominik Bartholdi added a comment -

          yes, you are right, it was never intended to work with nested conditions

          Show
          imod Dominik Bartholdi added a comment - yes, you are right, it was never intended to work with nested conditions
          Hide
          markcariddi Mark Cariddi added a comment -

          So this is not supported?   I can't do it via the UI or via my DSL.

          Show
          markcariddi Mark Cariddi added a comment - So this is not supported?   I can't do it via the UI or via my DSL.
          Hide
          jalberts John Alberts added a comment -

          Nested conditional steps definitely works via the job dsl plugin.  We have probably 100's of jobs configured that way for quite a long time via job dsl and never even realized it wasn't possible via the UI until just a few weeks ago.

           

          Show
          jalberts John Alberts added a comment - Nested conditional steps definitely works via the job dsl plugin.  We have probably 100's of jobs configured that way for quite a long time via job dsl and never even realized it wasn't possible via the UI until just a few weeks ago.  
          Hide
          imod Dominik Bartholdi added a comment -

          until now, this is not supported - It might not be a big thing to support, but it just has not been done...

          Show
          imod Dominik Bartholdi added a comment - until now, this is not supported - It might not be a big thing to support, but it just has not been done...

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              jalberts John Alberts
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: