thank you Daniel.

I have other question : in the jenkins workflow plugin all interaction will
remains in the output job console ? we will don't have a UI interaction in
the future with workflow ?

best regards

2014-12-23 12:35 GMT+01:00 Daniel Beck <[email protected]>:

> See https://issues.jenkins-ci.org/browse/JENKINS-26143
>
> On 23.12.2014, at 12:24, El alaoui Mohamed Reda <[email protected]>
> wrote:
>
> > When i generate the groovy code with Snippet Generator to do input list
> parameters like this :
> >
> > input id: 'Server', message: 'Choose the server', ok: 'Proceed',
> parameters: [[$class: 'ChoiceParameterDefinition', choices: ['Dev',
> 'Integ', 'Prod'], description: '', name: 'Server']]
> >
> >
> > i have this Error :
> >
> > java.lang.ClassCastException:
> hudson.model.ChoiceParameterDefinition.choices expects class
> java.lang.String but received class java.util.ArrayList
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:197)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:133)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:81)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:183)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.mapList(DescribableHelper.java:209)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:195)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:133)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.injectSetters(DescribableHelper.java:254)
> >       at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:83)
> >       at
> org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:95)
> >       at
> org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:134)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:98)
> >       at
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
> >       at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
> >       at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> >       at
> com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
> >       at WorkflowScript.run(WorkflowScript:20)
> >       at Unknown.Unknown(Unknown)
> >       at ___cps.transform___(Native Method)
> >       at
> com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:69)
> >       at
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:100)
> >       at
> com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:76)
> >       at sun.reflect.GeneratedMethodAccessor519.invoke(Unknown Source)
> >       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:606)
> >       at
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
> >       at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
> >       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:606)
> >       at
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
> >       at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
> >       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:606)
> >       at
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
> >       at
> com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
> >       at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
> >       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:606)
> >       at
> com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
> >       at
> com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
> >       at com.cloudbees.groovy.cps.Next.step(Next.java:58)
> >       at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:267)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:70)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:176)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:174)
> >       at
> org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
> >       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> >       at
> hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)
> >       at
> jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
> >       at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> >       at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >       at java.lang.Thread.run(Thread.java:745)
> > Finished: FAILURE
> >
> >
> > 2014-12-23 12:03 GMT+01:00 El alaoui Mohamed Reda <
> [email protected]>:
> > sorry for this mail i have the solution
> >
> > it's by the  : input
> >
> > 2014-12-23 11:53 GMT+01:00 El alaoui Mohamed Reda <
> [email protected]>:
> > Hello,
> > i have à workflow job and i need to have a choice list before start the
> build
> > How can i have a Parameterized Build with workflow (String or choice
> list ....)
> > thank's
> >
> > --
> > Mohamed Reda, El alaoui
> >
> >
> >
> >
> >
> >
> > --
> > Mohamed Reda, El alaoui
> >
> >
> >
> >
> >
> >
> > --
> > Mohamed Reda, El alaoui
> >
> >
> >
> >
> > --
> > 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/CAE-yB-PEeuC1FSBqfX2MNXXxoMM7RYquE28CpW4uwfXXz2aVOg%40mail.gmail.com
> .
> > 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/C949B80B-F11E-4260-8B7F-98BC90E531EF%40beckweb.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

*Mohamed Reda, El alaoui*

-- 
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/CAE-yB-NutPX8RTmQm8bM5j5WQRib1h-yZ7zOT_dXfXSuUoyPDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to