jenkinsci / jenkinsci/conditional-buildstep-plugin

[JENKINS-34971] Conditional build step plugin does not mark build a s unstable

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

Description

"Conditional build step-single" shows nice field:

"On evaluation failure" with options "Fail the build" or mark build as unstable.

Unfortunatly this is not working.

Example 1

Run? = Never

On evaluation failure = "Mark the build unstable"

Builder = "Execute windows batch command"

Command = "echo run builder"

It should mark all builds as unstable and not run the builder.

It does not run builder but does not mark build as unstable.

Example 2 - more reliable

Run? = Execute Windows batch Command

Command = which notinpath

On evaluation failure = "Mark the build unstable"

Builder = "Execute Windows batch Command"

Command = echo builder

notinpath is not in my path, so evaluation should fail - it does.

Build should be marked as unstable - it is not.

Echo builder should not be runned - it is not.

It Shouls mark all builds as unstable - but it does not.

---
Originally reported by fantastory, imported from: Conditional build step plugin does not mark build a s unstable


  • status: Open
  • priority: Minor
  • component(s): conditional-buildstep-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 20260107-133739

Raw content of original issue

"Conditional build step-single" shows nice field:
"On evaluation failure" with options "Fail the build" or mark build as unstable.

Unfortunatly this is not working.
Example 1
Run? = Never
On evaluation failure = "Mark the build unstable"
Builder = "Execute windows batch command"
Command = "echo run builder"

It should mark all builds as unstable and not run the builder.
It does not run builder but does not mark build as unstable.

Example 2 - more reliable
Run? = Execute Windows batch Command
Command = which notinpath
On evaluation failure = "Mark the build unstable"
Builder = "Execute Windows batch Command"
Command = echo builder

notinpath is not in my path, so evaluation should fail - it does.
Build should be marked as unstable - it is not.
Echo builder should not be runned - it is not.

It Shouls mark all builds as unstable - but it does not.

environment

```
Windows

Jenkins ver. 1.651.2

conditional-buildstep 1.3.3
```

2 attachments

- [image-2020-10-21-10-22-42-906.png](https://issues.jenkins.io/secure/attachment/53011/image-2020-10-21-10-22-42-906.png)
> ![image-2020-10-21-10-22-42-906.png](https://issues.jenkins.io/secure/attachment/53011/image-2020-10-21-10-22-42-906.png)
- [screen.jpg](https://issues.jenkins.io/secure/attachment/32765/screen.jpg)
> ![screen.jpg](https://issues.jenkins.io/secure/attachment/32765/screen.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.