Turn on things like ansi colour via builder when added

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Turn on things like ansi colour via builder when added

Michael Carter
Is it possible to turn on features/wrappers from a builder command?   I use ansi colour a lot and tend to forget to turn it on.   Was wondering if I could turn on with a builder command and basically make it so you can uncheck?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/828f8f87-75e6-418c-b644-fafb73c7e2eeo%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Turn on things like ansi colour via builder when added

Gavin Mogan
whats a builder command?

you can use options block in a pipeline.

On Sun, Sep 6, 2020 at 1:53 PM Michael Carter <[hidden email]> wrote:
Is it possible to turn on features/wrappers from a builder command?   I use ansi colour a lot and tend to forget to turn it on.   Was wondering if I could turn on with a builder command and basically make it so you can uncheck?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/828f8f87-75e6-418c-b644-fafb73c7e2eeo%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuuBgC2Ua%3D18jXBwR6_1DmffrswtGmcF1pse0xsH7tMcvA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Turn on things like ansi colour via builder when added

Michael Carter
Sorry was out hiking when I had this thought so wanted to ask the question while I was thinking of it so only had my phone, and guess I wasn't very descriptive.

"extends Builder implements SimpleBuildStep"

So really this is a two part idea.   When someone selects the "builder step" I've made in a freestyle build is it possible to force things to be checked, like the ansi check box.  The other thought I was having is it possible to have it so when you select the builder in a freestyle job it automatically adds a parameter to the parameter section.

This builder step I'm building relies on a string input so wanted to make it as seamless as possible.   As well as I said above I keep forgetting to turn on the ansi console in the freestyle jobs so I can only imaging the developers I'm making this for are going to forget too.

On Sunday, September 6, 2020 at 5:04:23 PM UTC-4 [hidden email] wrote:
whats a builder command?

you can use options block in a pipeline.

On Sun, Sep 6, 2020 at 1:53 PM Michael Carter <[hidden email]> wrote:
Is it possible to turn on features/wrappers from a builder command?   I use ansi colour a lot and tend to forget to turn it on.   Was wondering if I could turn on with a builder command and basically make it so you can uncheck?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/828f8f87-75e6-418c-b644-fafb73c7e2eeo%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0131266e-4803-4679-b481-7313f7a15717n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Turn on things like ansi colour via builder when added

Jesse Glick-4
There is https://javadoc.jenkins.io/hudson/console/ConsoleLogFilter.html#decorateLogger-hudson.model.Run-java.io.OutputStream-
but it is best to implement `SimpleBuildWrapper` instead.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr16Ns2uuUDvPS5C5X9%3DG58oA9-MJ1uzDfP6jGRaA6w1tw%40mail.gmail.com.