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

Unable to add nested conditional steps

    XMLWordPrintable

Details

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

    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

          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.

           

          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.  

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

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

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

          markcariddi Mark Cariddi added a comment - So this is not supported?   I can't do it via the UI or via my DSL.
          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.

           

          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.  

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

          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

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

            Dates

              Created:
              Updated: