Ask Your Question
1

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

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

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
0

answered 2015-10-05 10:01:10 -0500

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

postbuilders:
    - conditional-step:
        condition-kind: always
        condition-worst: SUCCESS
        condition-best: SUCCESS
        steps:
            - shell: 'my shell command here

http://docs.openstack.org/infra/jenkins-job-builder/builders.html (Documentation seems to be here) - but, I don't have that option (Run only if build succeeds) checked. https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin (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
0

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

Erik Rehm gravatar image

Hi,

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.

Greets

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 691 times

Last updated: Oct 05 '15