Re: Shared Groovy Library class comparation problem

2018-03-01 Thread Carles Capdevila Tejada
EDIT: wrong code for (action in build.getAllActions()) { context.echo "Comparing actions: ${action.getClass().getName()} with ${MilestoneAction.class.getName()}" //if (action.getClass().getName().equals(MilestoneAction.class.getName()))//Ugly, but works if (action instanceof Milesto

Shared Groovy Library class comparation problem

2018-03-01 Thread Carles Capdevila Tejada
Hi there, I defined a MilestoneAction class in our shared groovy library, and attached it to jobs through another method in the library via addAction(). When peeking at that specific build from another build through another library method via 'build.getActions(MilestoneAction.class)' that Miles