Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Jesse Glick
On Fri, Jan 27, 2017 at 4:16 PM, Moshe Cohen wrote: > Not that I understand why it works Run with `-Dstapler.trace=true` (the default when using `mvn hpi:run`) and look at response headers when you click on one of the links to understand how your page is being rendered. --

Crawler Pull Request approved but not yet merged

2017-01-27 Thread Keith Collison
Greetings, The PR I created for the backend-crawler here appears to be approved but not yet merged. May I request that the changes be merged (or guidance if changes are necessary to my code)? Thank you in advance! - Keith -- You

Re: [BlueOcean] Plugin

2017-01-27 Thread vivek
Hi, Thanks for your interest. We need to put more docs on these topics, something we will get fixed soon. You can use ApiRoutable to add your routes to BlueOcean API root: /blue/rest/. See BlueOrganizationContainer for reference. It adds organizations to /blue/rest/ path. >From what you

Re: Dynamically update dropdown list when a certain action is performed by the user

2017-01-27 Thread Jesse Glick
On Fri, Jan 27, 2017 at 1:20 PM, 'Claudiu Guiman' via Jenkins Developers wrote: > The fill operation is a long lasting operation. Is there some way to display > this to the user (add a spinner or other UI element)? Not currently. It would make sense for

RE: Dynamically update dropdown list when a certain action is performed by the user

2017-01-27 Thread 'Claudiu Guiman' via Jenkins Developers
That seems to do the job. Thanks. The fill operation is a long lasting operation. Is there some way to display this to the user (add a spinner or other UI element)? -Original Message- From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On Behalf Of Jesse Glick

Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Jesse Glick
On Fri, Jan 27, 2017 at 11:52 AM, Moshe Cohen wrote: > I do want a link on the left menu per build step In that case you had better ensure that `Action.getUrl` is distinct for each one. Otherwise there is no way for the Stapler routing to know which one the user clicked on. --

Re: Does someone maintain parameterized trigger plugin?

2017-01-27 Thread Oliver Gondža
On 2017-01-27 16:04, Jesse Glick wrote: On Thu, Jan 26, 2017 at 6:02 AM, wrote: Does someone maintain this plugin? If Oliver does not, then I guess it is yours for the taking… I do not intend to. I have done a couple of releases since it was unmaintained. Please, go

[BlueOcean] Plugin

2017-01-27 Thread Gijs
Hi, I'm exploring the Jenkins source code a bit to learn its internals and perhaps in the future be able to contribute a bit. I've written a couple of simple test-plugins during my exploration. Right now I'm looking into how to write a plugin for blue ocean, and I've got some simple stuff

Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Moshe Cohen
Then I misunderstood. Let me rephrase the question then: How can I implement what I am trying to implement with only one Action of a given type? Currently, I call build.addAction() from within the perform() of the custom build step. I now understand that this is wrong, but I do want a link on

Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Jesse Glick
On Fri, Jan 27, 2017 at 11:36 AM, Moshe Cohen wrote: > So am I limited to only use this custom build set once within a build? That is not what I said at all. I said there should only be one `Action` of a given type. -- You received this message because you are subscribed to

Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Moshe Cohen
Wow, so you are actually saying this just cannot be done :-( This action is created by a custom build step, that generates an artifact I would like to link to. So am I limited to only use this custom build set once within a build? That's quite a limitation. The weird thing is that I do get

Re: multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Jesse Glick
On Fri, Jan 27, 2017 at 11:25 AM, Moshe Cohen wrote: > All works well when there is only one instance of it, but when I have > multiple instances, by way of having multiple custom build steps in the same > build Then the URL-binding will only find the first one. So do not set

multiple actions of same class - the "it" object always points to the first one

2017-01-27 Thread Moshe Cohen
I have a simple action that displays an icon on the left rail, that when is clicked displays an artifact. All works well when there is only one instance of it, but when I have multiple instances, by way of having multiple custom build steps in the same build I encounter the following issue: I

Re: How can I distinguish between two custom steps of the same class?

2017-01-27 Thread Jesse Glick
On Thu, Jan 26, 2017 at 3:54 PM, Daniel Beck wrote: > A single action is used to record copied files, and amended as needed. BTW in this example no backreference to the `Run` was needed. If the action does need to refer to the `Run` for any reason, typically so it can

Re: Dynamically update dropdown list when a certain action is performed by the user

2017-01-27 Thread Jesse Glick
On Thu, Jan 26, 2017 at 5:45 PM, 'Claudiu Guiman' via Jenkins Developers wrote: > I’m trying to dynamically update the items in a dropdown list when the user > performes a certain action (clicked button or selected some option). In the case of selecting a

Re: Does someone maintain parameterized trigger plugin?

2017-01-27 Thread Jesse Glick
On Thu, Jan 26, 2017 at 6:02 AM, wrote: > Does someone maintain this plugin? If Oliver does not, then I guess it is yours for the taking… -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this

Re: How to remove "plugin is up for adoption" warning message from wiki plugin page

2017-01-27 Thread Daniel Beck
> On 27.01.2017, at 09:51, 'Nikolas Falco' via Jenkins Developers > wrote: > > I already release two new versions but the Wiki page of Plugin continue to > show warning message: "This plugin is up for adoption. Want to help improve > this plugin?" Clicking

Re: How to remove "plugin is up for adoption" warning message from wiki plugin page

2017-01-27 Thread Robert Sandell
Just remove the "adopt-this-plugin" label from the wiki page. /B On Fri, Jan 27, 2017 at 9:51 AM, 'Nikolas Falco' via Jenkins Developers < jenkinsci-dev@googlegroups.com> wrote: > Hi, I've a question. > > I'm the current mainaiter of NodeJS plugin. > I already release two new versions but the

Re: Dynamically update dropdown list when a certain action is performed by the user

2017-01-27 Thread Robert Sandell
Well there is no ready component that can do this so you would need to do most of the work "by hand". Stapler can help you with some of the wiring if you need to talk to the backend; If you annotate a java method with @JavaScriptMethod

How to remove "plugin is up for adoption" warning message from wiki plugin page

2017-01-27 Thread 'Nikolas Falco' via Jenkins Developers
Hi, I've a question. I'm the current mainaiter of NodeJS plugin. I already release two new versions but the Wiki page of Plugin continue to show warning message: "*This plugin is up for adoption.* Want to help improve this plugin?"