Lockable Resources Plugin

788 views
Skip to first unread message

robin.jarry

unread,
Dec 9, 2013, 9:21:17 AM12/9/13
to jenkin...@googlegroups.com
Hello all,

We recently began to use Jenkins to run our integration and performance tests. The main need we have is to be able to assign test platforms to Jenkins jobs to make sure these platforms are used by one job at a time (and queue the jobs that need these platforms accordingly).

I came across the External Resource Dispatcher plugin and tried to use it. Unfortunately it didn't respond to our need (our test platforms are not directly tied to a Jenkins node, and we don't have any "meta-data" to attach to the external resources).

Therefore we developed a very simple plugin licensed with MIT https://github.com/6WIND/lockable-resources-plugin and we would like to share it with the community.

Is this plugin a good candidate ?

Thanks in advance,
Robin

Jason Swager

unread,
Dec 9, 2013, 9:57:07 AM12/9/13
to jenkin...@googlegroups.com

robin.jarry

unread,
Dec 9, 2013, 10:25:51 AM12/9/13
to jenkin...@googlegroups.com
Yes I already looked at this plugin but with I found some limitations (which I'm not sure can be worked around):
  • It doesn't seem possible to schedule several builds of the same projects while allowing only 1 build at a time (only 1 build is put in the queue, the others are rejected). This is a big limitation because it forces users to wait for a "free slot" to schedule their build.
  • An implication of the first limitation is that you cannot schedule new builds with a higher lock priority over some resources (the queued builds of the Throttle plugin seem to be flagged as "non-buildable" until they are allowed to pass, this makes them "non-sortable" and therefore not seen by the QueueSorters).
  • Our plugin has a "Lockable Resource" page which displays which builds holds the lock on which resources.
Do you think that the Throttle plugin could be adapted in this direction? If not, is our plugin really too redundant?

Cheers,

--
Robin

robin.jarry

unread,
Dec 11, 2013, 7:18:30 AM12/11/13
to jenkin...@googlegroups.com
Gentle bump :-)

Ulli Hafner

unread,
Dec 11, 2013, 7:25:17 AM12/11/13
to jenkin...@googlegroups.com
Created https://github.com/jenkinsci/lockable-resources-plugin

What is your github user name?

Ulli

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

robin.jarry

unread,
Dec 11, 2013, 7:45:26 AM12/11/13
to jenkin...@googlegroups.com
Awesome thanks !

my github username: robin-jarry

Do we need to push all our commits on the fork on jenkinsci from now on ?

Ulli Hafner

unread,
Dec 11, 2013, 9:31:00 AM12/11/13
to jenkin...@googlegroups.com
Am 11.12.2013 um 13:45 schrieb robin.jarry <robin...@6wind.com>:

Awesome thanks !

my github username: robin-jarry


Ok, you should now have commit rights.

Do we need to push all our commits on the fork on jenkinsci from now on ?

Yes.
signature.asc

robin.jarry

unread,
Dec 11, 2013, 10:36:17 AM12/11/13
to jenkin...@googlegroups.com
Ok everything seems to be working :)

Thank you

Rico Shen

unread,
Oct 26, 2015, 8:05:05 AM10/26/15
to Jenkins Developers
Hi Robin,

Today I tried to use the lockable plugin, while when I set the lable , seems there's an error , see attached picture. Do I use the wrong lable? Or do you have a document of how to use this plugin?  I'm sure I do have the label "collab-service". Looking forward to your feedback.



在 2013年12月9日星期一 UTC+8下午10:21:17,robin.jarry写道:
lockable.jpg

Oleg Nenashev

unread,
Oct 27, 2015, 3:02:28 AM10/27/15
to Jenkins Developers
@Rico
If you discover an issue, please also create a ticket for it

понедельник, 26 октября 2015 г., 15:05:05 UTC+3 пользователь Rico Shen написал:
Reply all
Reply to author
Forward
0 new messages