jenkinsci / jenkinsci/conditional-buildstep-plugin

[JENKINS-45547] Unable to add nested conditional steps

Open
#200 5 comments 0 reactions 0 assignees View on GitHub
component:conditional-buildstep-plugin imported-jira-issue priority:blocker resolution:unresolved
Dominant language
Java
Stars
17
Forks
39
Avg merge
23h 17m
Merged PRs (30d)
1

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)'

 

---
Originally reported by jalberts, imported from: Unable to add nested conditional steps


  • assignee: domi
  • status: Open
  • priority: Blocker
  • component(s): conditional-buildstep-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 4
  • imported: 20260107-133739

Raw content of original issue

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)'

 

environment

```
New docker container of jenkins:alpine 2.46.3

conditional build step 1.3.6

```

1 attachment

- [conditional_steps_bug.png](https://issues.jenkins.io/secure/attachment/38890/conditional_steps_bug.png)
> ![conditional_steps_bug.png](https://issues.jenkins.io/secure/attachment/38890/conditional_steps_bug.png)

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the UI flow in Jenkins 2.46.3 with conditional build step 1.3.6, then inspect the conditional-buildstep-plugin implementation that defines the available steps. Done means the “conditional steps (multiple)” option appears when adding a step inside another conditional step and nested configurations can be saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.