Ask Your Question

JJB looking for the postbuilders(maven project) config to set "Run only if build succeeds"

asked 2015-03-18 06:37:26 -0600

Erik Rehm gravatar image

In maven projects there are post steps. For them you can configure when they should run. (Run only if build succeeds, Run only if build succeeds or is unstable, Run regardless of build result). By default it is set to"Run regardless of build result", but I need it to set to "Run only if build succeed" and can't find something in the doc for this issue.

Is there a possibility to set this in Jenkins Job Builder?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-10-05 10:01:10 -0600

I am very interested in that as well. So far i have:

    - conditional-step:
        condition-kind: always
        condition-worst: SUCCESS
        condition-best: SUCCESS
            - shell: 'my shell command here (Documentation seems to be here) - but, I don't have that option (Run only if build succeeds) checked. (I have installed plugin) - as per documentation.

Not too sure if this is correct or not - can someone have a look and elaborate on this?

edit flag offensive delete link more

answered 2015-03-30 02:57:38 -0600

Erik Rehm gravatar image


I have look now into the source code. It's not implemented jet -> 'Run regardless of build result' is hardcoded.

I'll implement it and make a patch.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-18 06:37:26 -0600

Seen: 753 times

Last updated: Oct 05 '15