Anyone? Tzach
On Sun, Nov 19, 2023, 12:50 tzach....@gmail.com <tzach.solo...@gmail.com> wrote: > Hi, > > I'm developing a new plugin and I was able to write to log in > FreeStyleJob but it does not work in pipeline. What I have done is: > > 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, > Tzach > > > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/f0bd9a71-43e4-4f05-9f41-c05b202aaa8bn%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/f0bd9a71-43e4-4f05-9f41-c05b202aaa8bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAC19wgJRHEwr8aFEzthb1hN72cmBiSv8JOZV936tesUKkxpX%2Bg%40mail.gmail.com.