1. Extend ParameterValue class
2. Override createBuildWrapper and return new SimpleBuildWrapper. In it, override setup() method and used the listener to reach the logger. But, this does not work in pipleine (i'm guessing because it has AbstractBuild as input)
This is my code:
@Override
public BuildWrapper createBuildWrapper(AbstractBuild<?, ?> build) {
return new SimpleBuildWrapper() {
@Override
public boolean requiresWorkspace() {
return false;
}
@Override
public void setUp(Context context, Run<?, ?> build, TaskListener listener, EnvVars env) { listener.getLogger().println("*** My plugin works ***");
My question is, what do I need to do in order to be able to println also to console plugin?
Thanks,