[Build-Flow-Plugin] Parallel Join operation

2015-06-11 Thread ramesh v r
Hello All,

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2cc02884-6387-43f8-8a13-6da9dbbd323a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Build-Flow-Plugin] Parallel Join operation

2015-06-11 Thread ramesh v r



Hello All,
 I am trying to use Jenkins build flow plugin to create below build chain.


https://lh3.googleusercontent.com/-RiusPDtzJP8/VXlWpPCLBMI/ANA/3_G4K6MyLG0/s1600/Presentation1.png


I have used below DSL to achieve up to build D. 
How to specify that Build E should start only after both Build D  Build C 
are completed?

// Declare all Build Results
def Build_A_Result
def Build_B_Result
def Build_C_Result
def Build_D_Result
def Build_E_Result

// Declare the build calls
def Build_A_Flow= { Build_A_Result= ignore(UNSTABLE) { build( 'Build_A' ) } 
}
def Build_B_Flow= { Build_B_Result= ignore(UNSTABLE) { build( 'Build_B' ) } 
}
def Build_C_Flow= { Build_C_Result= ignore(UNSTABLE) { build( 'Build_C' ) } 
}
def Build_D_Flow= { Build_D_Result= ignore(UNSTABLE) { build( 'Build_D' ) } 
}
def Build_E_Flow= { Build_E_Result= ignore(UNSTABLE) { build( 'Build_E' ) } 
}

//Start the process flow
def BuildBDFlow= {
[   Build_B_Flow,
Build_D_Flow
].each { it() }
}

def BuildABCFlow= {
[Build_A_Flow,
{ parallel(BuildBDFlow, Build_C_Flow) }
].each { it() }
}

[ BuildABCFlow ].each { it() }




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/09279607-c353-4d58-b3a3-dc56ddd92671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Stack trace when trying to build 255 jobs in Build Flow

2014-12-15 Thread ramesh v r
I am trying to Execute many small threads of a larger build using Build 
Flow.

However I get a startup failed issue with 255 jobs (I was rededing from 500 
jobs to 255).
Is there a limit on number of jobs that can be handled in a single?
Any API / reference would be immensely helpful.

Complete Stack Trace:

Started by user anonymous http://localhost:8080/user/null
FATAL: startup failed:
General error during class generation: 255

java.lang.ArrayIndexOutOfBoundsException: 255
at 
org.codehaus.groovy.classgen.asm.CallSiteWriter.getCreateArraySignature(CallSiteWriter.java:54)
at 
org.codehaus.groovy.classgen.asm.CallSiteWriter.makeCallSite(CallSiteWriter.java:315)
at 
org.codehaus.groovy.classgen.asm.InvocationWriter.makeCall(InvocationWriter.java:187)
at 
org.codehaus.groovy.classgen.asm.InvocationWriter.makeCall(InvocationWriter.java:89)
at 
org.codehaus.groovy.classgen.asm.InvocationWriter.makeInvokeMethodCall(InvocationWriter.java:73)
at 
org.codehaus.groovy.classgen.asm.InvocationWriter.writeInvokeMethod(InvocationWriter.java:292)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitMethodCallExpression(AsmClassGenerator.java:655)
at 
org.codehaus.groovy.ast.expr.MethodCallExpression.visit(MethodCallExpression.java:75)
at 
org.codehaus.groovy.classgen.asm.StatementWriter.writeReturn(StatementWriter.java:577)
at 
org.codehaus.groovy.classgen.asm.OptimizingStatementWriter.writeReturn(OptimizingStatementWriter.java:316)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitReturnStatement(AsmClassGenerator.java:497)
at 
org.codehaus.groovy.ast.stmt.ReturnStatement.visit(ReturnStatement.java:47)
at 
org.codehaus.groovy.classgen.asm.StatementWriter.writeBlockStatement(StatementWriter.java:80)
at 
org.codehaus.groovy.classgen.asm.OptimizingStatementWriter.writeBlockStatement(OptimizingStatementWriter.java:155)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitBlockStatement(AsmClassGenerator.java:447)
at 
org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69)
at 
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:101)
at 
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:112)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitStdMethod(AsmClassGenerator.java:311)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitConstructorOrMethod(AsmClassGenerator.java:268)
at 
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:123)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitMethod(AsmClassGenerator.java:388)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1058)
at 
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:50)
at 
org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:172)
at 
org.codehaus.groovy.control.CompilationUnit$14.call(CompilationUnit.java:770)
at 
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:970)
at 
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:548)
at 
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:526)
at 
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:503)
at 
groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:302)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
at groovy.lang.GroovyShell.parse(GroovyShell.java:743)
at groovy.lang.GroovyShell.parse(GroovyShell.java:770)
at groovy.lang.GroovyShell.parse(GroovyShell.java:761)
at groovy.lang.GroovyShell$parse.call(Unknown Source)
at 
com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:80)
at 
com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)
at hudson.model.Run.execute(Run.java:1759)
at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43)

1 error
org.codehaus.groovy.control.MultipleCompilationErrorsException 
http://stacktrace.jenkins-ci.org/search?query=org.codehaus.groovy.control.MultipleCompilationErrorsException:
 startup failed:
General error during class generation: 255

java.lang.ArrayIndexOutOfBoundsException: 255
at 
org.codehaus.groovy.classgen.asm.CallSiteWriter.getCreateArraySignature(CallSiteWriter.java:54)
at