Currently, the "post-build action" of the project configuration page
lists one checkbox per one publisher. This has a couple of problems:
- when you have a large number of plugins, as many large instances
inevitably do, they occupy a large real estate in the configuration
screen.
- you cannot reorder them
In the branch, instead of a big list of checkboxes, you get a
drop-down menu button just like the main "build' section. And then
you'll be adding publishers by clicking them.
- once you add a publisher of a certain kind, it gets grayed out and
prevents you from adding 2nd (and if you actually click the grayed out
item, you jump to the corresponding part of the page.) (this
restriction of one instance per one publisher might be something worth
removing in the future?)
- new items are inserted into their preferred position, instead of
getting added to the bottom, so that users normally wouldn't have to
think about the proper ordering among them (you generally want the
data collection tasks to come before the notification tasks.)
- a few animations to go with it.
Looking forward to hearing back.
--
Kohsuke Kawaguchi
Didn't have time to try it yet, but the idea seems good, and this way I believe I wouldn't have to use ordinals in extension annotations anymore to change the execution order :-)
Will give it a try during the weekend.
Thanks!
Bruno P. Kinoshita
http://kinoshita.eti.br
http://tupilabs.com
>________________________________
> From: Kohsuke Kawaguchi <k...@kohsuke.org>
>To: jenkin...@googlegroups.com
>Sent: Thursday, 19 April 2012 1:01 PM
>Subject: [RFC] publishers as a drop-down menu
+1 and add same for triggers
- Stephen
---
Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen
+1
As creator of the [Flexible Publish Plugin][1], I think this is an
excellent idea.
The two main drivers for Flexible Publish were:
1. Set the order of execution
2. Allow a publisher to be used more than once
I'm all for removing the single instance of a type restriction - some
publishers do not work when run more than once, but many are more than
happy. We could create a marker interface to enable post-build tasks
to either opt in or opt out of multiple use.
Many of the issues of using a publisher more than once are due to the
fact that the data binding does not expect there to be more than one
instance in a page, and form submission results in unexpected (mixed
up) configurations. Those plugins just need some view TLC to enable
them to be used sucessfully more than once (ie. in [Promoted
Builds][2] and Flexible Publish)
Of course there are also many post build tasks that cannot (should
not) run multiple times for very good reasons.
Looking forward to trying out the change at the weekend,
Bap.
[1]: https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin
[2]: https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin
>
> --
> Kohsuke Kawaguchi
At this point they're getting very similar to build steps (not a bad
thing, per se), and that train of thought lead me to consider one
thing:
Could we not simplify the whole set of job configuration by making
build tasks & publishers the same thing? Does the separation of
publishers & build steps gain us anything? They're all "actions" that
are taken (in a sequence) for each build performed.
With a few changes to make it so that build tasks could behave like
post-build tasks ("always run" as opposed to "don't run if build
failed", etc), it seems feasible to me. The benefit would be a simpler
UI, simpler codebase and the opportunity for more re-use. The
complexity of the Jenkins codebase is definitely significant for new
people to start developing - both plugins & core changes.
Does anyone else have any thoughts on this?
- Jørgen.
especially ordering of post-build actions is IMHO great idea
* from user perspective - it's clear in which order plugins run and it can be
changes by user
* from developer perspective - no need to worry what other plugins do and
avoid problems like JENKINS-12962
> <publisher.png>
+1 makes things more transparent.
Regards Mirko
--
Sent from my phone
http://illegalstateexception.blogspot.com
http://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/
On 04/19/2012 11:51 AM, Bap wrote:
> I'm all for removing the single instance of a type restriction - some
> publishers do not work when run more than once, but many are more than
> happy. We could create a marker interface to enable post-build tasks
> to either opt in or opt out of multiple use.
I think we'll let publishers tell core if they want to allow multiple
instances, and we can treat them accordingly.