Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-03 Thread Stuart Rowe
That's disappointing. Perhaps you can report this issue to the plugin maintainers? That is the use case for the skipIfLocked feature. -- 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

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Satya Muralidhar Peddireddi
Yes. On Sat, May 2, 2020, 10:54 Stuart Rowe wrote: > Do you have release 2.8 installed? > https://github.com/jenkinsci/lockable-resources-plugin/releases/tag/lockable-resources-2.8 > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To un

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Stuart Rowe
Do you have release 2.8 installed? https://github.com/jenkinsci/lockable-resources-plugin/releases/tag/lockable-resources-2.8 -- 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, sen

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Satya Muralidhar Peddireddi
i tried this script still its waiting for another lock pipeline { agent any stages { stage('sample_1') { steps { script { def lockedResource1 = false lock(label: 'Resource1', skipIfLocked: true) { l

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-05-01 Thread Stuart Rowe
I agree with Christoph that there are better approaches. However, if you really want to do this you can use the new skipIfLocked feature added in lockable-resource 2.8 : pipeline { agent any stage

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-04-30 Thread 'Christoph Fetzer' via Jenkins Users
Don't you actually want to use a ressource pool with two locks which use the same label? Am Donnerstag, 30. April 2020 15:46:28 UTC+2 schrieb Satya Muralidhar Peddireddi: > > It's my test case I want run same job parallely in different locks.if one > lock is busy go to another lock > > On Thu,

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-04-30 Thread Satya Muralidhar Peddireddi
It's my test case I want run same job parallely in different locks.if one lock is busy go to another lock On Thu, Apr 30, 2020, 14:24 Gianluca wrote: > > It's not really clear what you want ... but nevertheless I think you have > got the solution. > You have an "if" ... you just need to figure i

Re: Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-04-30 Thread Gianluca
It's not really clear what you want ... but nevertheless I think you have got the solution. You have an "if" ... you just need to figure it out what is the condition that makes you go to the else branch. So, why one job should lock "Resource 1" and another should "Resource 2"? On Thursday, 30

Hi friend i have 2 lockable resource while executing same job 2 times i want 2nd job will move 2nd lcokable resource how can i do it

2020-04-30 Thread Satya Muralidhar Peddireddi
pipeline { agent any stages { stage('sample_1') { steps { script { if(true) { lock(label: 'Resource1') { sh label: '', script: 'echo $JAVA_HOME' sleep tim