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
@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
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.
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.
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