Scheduling the job to wait for license to be available

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Scheduling the job to wait for license to be available

Sharoon Mohideen
Hi,

I have only a single license of the tool which is running in one of the agent. 
Suppose, I commit to the shared repository which triggers the sequence of stages by Jenkins declarative pipeline, with one of the stage use the above said tool (with one license).

Another team member subsequently (say after 10 minutes) made changes to the shared repository which triggers the same sequence of stages.

Since the execution of tool from my commit is still in progress, is there a way to queue the second request of the tool till the first request is finished.


Thanks and regards,
Sharoon





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAB-nQ9naGsXueOej%2Ba5SdF-eXLNKdj4_DSj%3DtS163UDWMs7bCg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling the job to wait for license to be available

Mark Waite-2
I think you want the lockable resources plugin.   https://plugins.jenkins.io/lockable-resources

On Sat, Jan 11, 2020 at 5:19 AM Sharoon Mohideen <[hidden email]> wrote:
Hi,

I have only a single license of the tool which is running in one of the agent. 
Suppose, I commit to the shared repository which triggers the sequence of stages by Jenkins declarative pipeline, with one of the stage use the above said tool (with one license).

Another team member subsequently (say after 10 minutes) made changes to the shared repository which triggers the same sequence of stages.

Since the execution of tool from my commit is still in progress, is there a way to queue the second request of the tool till the first request is finished.


Thanks and regards,
Sharoon





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAB-nQ9naGsXueOej%2Ba5SdF-eXLNKdj4_DSj%3DtS163UDWMs7bCg%40mail.gmail.com.


--
Thanks!
Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAO49JtF9b8f-3OuQnd8LmoxcgOV%3DLCO9Ah_M8LEUSuaGgpxAaA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Scheduling the job to wait for license to be available

Sharoon Mohideen
Thank you very much Mark. I will try with this plugin. 

2020年1月11日(土) 21:24 Mark Waite <[hidden email]>:
I think you want the lockable resources plugin.   https://plugins.jenkins.io/lockable-resources

On Sat, Jan 11, 2020 at 5:19 AM Sharoon Mohideen <[hidden email]> wrote:
Hi,

I have only a single license of the tool which is running in one of the agent. 
Suppose, I commit to the shared repository which triggers the sequence of stages by Jenkins declarative pipeline, with one of the stage use the above said tool (with one license).

Another team member subsequently (say after 10 minutes) made changes to the shared repository which triggers the same sequence of stages.

Since the execution of tool from my commit is still in progress, is there a way to queue the second request of the tool till the first request is finished.


Thanks and regards,
Sharoon





--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAB-nQ9naGsXueOej%2Ba5SdF-eXLNKdj4_DSj%3DtS163UDWMs7bCg%40mail.gmail.com.



--
Thanks!
Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAO49JtF9b8f-3OuQnd8LmoxcgOV%3DLCO9Ah_M8LEUSuaGgpxAaA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CAB-nQ9mFYFSVFv%3DyG9sW%3D47JfP9zSM5m6HcZJvLX96hTc95pyA%40mail.gmail.com.