Re: Pipeline Syntax page and arguments of type Object

2016-08-04 Thread Jesse Glick
On Fri, Jul 29, 2016 at 6:47 AM, David van Laatum wrote: > @DataBoundSetter > public void setValue(String value) { > this.value = value; > } > > @DataBoundSetter > public void setValue(Integer value) { > this.value = value; > } You have to pick different parameters for

Re: Pipeline Syntax page and arguments of type Object

2016-07-29 Thread David van Laatum
@DataBoundSetter public void setValue(String value) { this.value = value; } @DataBoundSetter public void setValue(Integer value) { this.value = value; } java.lang.ClassCastException: class org.jenkinsci.plugins.pipelinestatus.SetStatusVariableStep.setValue() expects class

Re: Pipeline Syntax page and arguments of type Object

2016-07-29 Thread David van Laatum
it didnt work On Wednesday, July 27, 2016 at 5:22:40 AM UTC+9:30, Jesse Glick wrote: > > On Sat, Jul 23, 2016 at 9:51 PM, David van Laatum > wrote: > > I tried using overloading of methods to > > accept a select list of types > > This is the only supported option.

Re: Pipeline Syntax page and arguments of type Object

2016-07-26 Thread Jesse Glick
On Sat, Jul 23, 2016 at 9:51 PM, David van Laatum wrote: > I tried using overloading of methods to > accept a select list of types This is the only supported option. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.

Pipeline Syntax page and arguments of type Object

2016-07-23 Thread David van Laatum
My custom pipeline step accepts an argument of type object so multiple datatypes such as string,integer etc can be passed to it. This works fine but makes the pipeline syntax page list every object type as a potential argument (which is a big list). I tried using overloading of methods to