Feature switch, is there a way to turn off a build/publisher/step?

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

Feature switch, is there a way to turn off a build/publisher/step?

Michael Carter
Want to be able to turn off a command so it won't show in freestyle jobs, pipeline syntax generator, etc...

Is there a way to do this.  First part is for a brand new function being worked on but we have to package the plugin and don't anyone using the new command yet.   That way if ready we just say flip a checkbox on a config page.

The other side is is there a way to disable it with a switch.  That way anyone using it the command is just skipped?  Realize this we could just code in the switch ... wanted to see if there was a more standard way.

--
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/0375422d-6f45-47b1-ad2b-95563b846703n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Feature switch, is there a way to turn off a build/publisher/step?

Jesse Glick-4
On Fri, Aug 21, 2020 at 1:39 PM Michael Carter
<[hidden email]> wrote:
> Want to be able to turn off a command so it won't show in freestyle jobs, pipeline syntax generator, etc...
>
> Is there a way to do this.

https://javadoc.jenkins.io/hudson/model/DescriptorVisibilityFilter.html
though it is not universally honored.

--
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/CANfRfr0-RmMdkvKpyadfkX-gbeRNQwxjLZu6pdBg7h4C3GG6Lw%40mail.gmail.com.