Hi , 
I tired to follow your instruction to build the buildflow plugin and and 
got the following failures : 

Tests run: 45, Failures: 0, Errors: 45, Skipped: 0

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 12:57 min
[INFO] Finished at: 2016-01-24T13:37:31+02:00
[INFO] Final Memory: 56M/251M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on 
project build-flow-plugin: There are test failures.
[ERROR]
[ERROR] Please refer to 
C:\GitTests\build-flow-plugin\target\surefire-reports for the individual 
test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



On Saturday, January 23, 2016 at 10:49:12 PM UTC+2, Craig Rodrigues wrote:
>
> Hi,
>
> Thanks for posting your sample scripts.
> I was able to reproduce your problem. 
>
> It looks like the Build Flow plugin needs to change to use the Run class, 
> instead of AbstractBuild
> in order to be compatible with workflow/pipeline plugin.
>
> --
> Craig
>
>
> On Sat, Jan 23, 2016 at 12:22 AM, EK <[email protected] <javascript:>> 
> wrote:
>
>> An example to reproduce :
>>
>> this is my workflow script , it takes param1 (string) from user when 
>> running, and executes buildflowjob : 
>> #########
>> println(param1);
>> build job: 'buildflowjob', parameters: [[$class: 'StringParameterValue', 
>> name: 'param1', value:param1]]
>> #########
>>
>> this is my buildflowjob script, it takes param1 (string) from user when 
>> running
>> ########
>> println(params['param1']));
>> ########
>>
>>
>> On Thursday, January 21, 2016 at 3:45:12 PM UTC+2, EK wrote:
>>
>>> Hi , 
>>>
>>>
>>>     I am facing the following error , we recently moved to workflow and 
>>> when we try to run\trigger old build flow jobs from workflow jobs we get 
>>> exception:
>>>
>>> Stacktrace of exception is as below , appreciate if anyone can help\advice 
>>> on this and how we can overcome the issue ? 
>>>
>>>
>>> Best Regards
>>>
>>> EK
>>>
>>>
>>> FATAL: Cannot cast object 'MyWorkFlowJobName #3' with class 
>>> 'org.jenkinsci.plugins.workflow.job.WorkflowRun' to class 
>>> 'hudson.model.AbstractBuild'org.codehaus.groovy.runtime.typehandling.GroovyCastException
>>>  
>>> <http://stacktrace.jenkins-ci.org/search?query=org.codehaus.groovy.runtime.typehandling.GroovyCastException>:
>>>  Cannot cast object 'MyWorkFlowJobName #3' with class 
>>> 'org.jenkinsci.plugins.workflow.job.WorkflowRun' to class 
>>> 'hudson.model.AbstractBuild'
>>>     at 
>>> org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:360)
>>>  
>>> <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType&entity=method>
>>>     at 
>>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599)
>>>  
>>> <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType&entity=method>
>>>     at 
>>> com.cloudbees.plugins.flow.FlowDSL$_executeFlowScript_closure1.doCall(FlowDSL.groovy:55)
>>>  
>>> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.plugins.flow.FlowDSL$_executeFlowScript_closure1.doCall&entity=method>
>>>     at sun.reflect.GeneratedMethodAccessor1187.invoke(Unknown Source)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>     at 
>>> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
>>>     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>>>     at 
>>> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
>>>     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
>>>     at groovy.lang.Closure.call(Closure.java:415)
>>>     at groovy.lang.Closure.call(Closure.java:428)
>>>     at 
>>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1379)
>>>     at 
>>> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1351)
>>>     at org.codehaus.groovy.runtime.DefaultGroovyMethods$each.call(Unknown 
>>> Source)
>>>     at 
>>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>>>     at org.codehaus.groovy.runtime.DefaultGroovyMethods$each.call(Unknown 
>>> Source)
>>>     at 
>>> com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods.groovy:26)
>>>     at sun.reflect.GeneratedMethodAccessor941.invoke(Unknown Source)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>     at 
>>> org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51)
>>>     at 
>>> org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54)
>>>     at 
>>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
>>>     at 
>>> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
>>>     at 
>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>>>     at 
>>> com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:52)
>>>     at 
>>> com.cloudbees.plugins.flow.FlowRun$FlyweightTaskRunnerImpl.run(FlowRun.java:219)
>>>     at hudson.model.Run.execute(Run.java:1738)
>>>     at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:155)
>>>     at hudson.model.ResourceController.execute(ResourceController.java:98)
>>>     at hudson.model.Executor.run(Executor.java:410)
>>>
>>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/58cd91ef-7810-4c70-9d11-e162c386f5bb%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/58cd91ef-7810-4c70-9d11-e162c386f5bb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/70c11f11-a4ab-4512-9a95-29dd4a45add6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to