Turn on things like ansi colour via builder when added

16 views
Skip to first unread message

Michael Carter

unread,
Sep 6, 2020, 4:53:34 PM9/6/20
to Jenkins Developers
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?

Gavin Mogan

unread,
Sep 6, 2020, 5:04:23 PM9/6/20
to Jenkins Developers
whats a builder command?

you can use options block in a pipeline.

On Sun, Sep 6, 2020 at 1:53 PM Michael Carter <mikeyca...@gmail.com> 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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/828f8f87-75e6-418c-b644-fafb73c7e2eeo%40googlegroups.com.

Michael Carter

unread,
Sep 6, 2020, 7:23:10 PM9/6/20
to Jenkins Developers
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.

Jesse Glick

unread,
Sep 8, 2020, 5:12:25 PM9/8/20
to Jenkins Dev
Reply all
Reply to author
Forward
0 new messages