Issue Type: Improvement Improvement
Affects Versions: current
Assignee: Nicolas De Loof
Components: build-flow
Created: 18/Jul/12 1:30 PM
Description:

After a job failed there should be a possibility to run the next job.

My contribution to FlowDSL.groovy :

def buildAlways(Map args, String jobName) {
// ask for job with name ${name}
JobInvocation job = new JobInvocation(flowRun, jobName)
def p = job.getProject()
listener.logger.println("Trigger job " + HyperlinkNote.encodeTo('/'+ p.getUrl(), p.getFullDisplayName()))
Run r = flowRun.schedule(job, getActions(args));
listener.logger.println(HyperlinkNote.encodeTo('/'+ r.getUrl(), r.getFullDisplayName())+" completed")
return job;
}

def build(Map args, String jobName) {
if (flowRun.state.result.isWorseThan(SUCCESS)) { fail() }
buildAlways(args, jobName)
}

My workaround is:

parallel (
{ build("aaa") flowRun.state.result = hudson.model.Result.SUCCESS build("bbb") flowRun.state.result = hudson.model.Result.SUCCESS build("ccc") },{ build("dddd") flowRun.state.result = hudson.model.Result.SUCCESS build("eeee") flowRun.state.result = hudson.model.Result.SUCCESS build("ffff") } )

I run visual tests. Every test should run, even if there are errors.

Useful plugin!

Environment: Jenkins version 1.457, Windows, Flow plugin version 0.4
Project: Jenkins
Priority: Major Major
Reporter: Marcus Warm
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to