Re: How to prevent concurrent builds across all branches in a multibranch pipeline project?

2017-08-14 Thread Viacheslav Dubrovskyi

Hi Mark,

You can use env.EXECUTOR_NUMBER in DB user name or in port of connection 
string.



14.08.2017 17:00, Mark Allison пишет:
Yes we have a database server for testing new database changes, and I 
want to serialise all database project builds across branches so they 
don't interfere. I will look into the lockable resources plugin.


Is there a way to tie an executor to a particular database server? For 
example have 10 executors and they will only run on against certain 
database servers.


On Monday, 14 August 2017 11:54:36 UTC+1, mpapo - Michael Pailloncy 
wrote:


Why do you want to prevent this ? Do you have a shared resource
for all your builds ?
If yes, I think that this plugin will fit your needs
https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin


2017-08-14 12:37 GMT+02:00 Mark Allison :

I have tried to use

properties[(disableConcurrentBuilds)]

but that only prevents concurrent builds within one branch in
a multibranch pipeline project. Is there a way to prevent
concurrent builds across all branches in a project?

Thanks
-- 
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 jenkinsci-use...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/f91f57d6-e39a-4abd-93e0-1a016434cc9f%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout
.


--
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 jenkinsci-users+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3b773487-e5c3-49c6-abb2-b046d20de256%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
WBD,
Viacheslav Dubrovskyi

--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/300fc65f-b041-e076-4719-44682667c371%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to prevent concurrent builds across all branches in a multibranch pipeline project?

2017-08-14 Thread Mark Allison
Yes we have a database server for testing new database changes, and I want 
to serialise all database project builds across branches so they don't 
interfere. I will look into the lockable resources plugin.

Is there a way to tie an executor to a particular database server? For 
example have 10 executors and they will only run on against certain 
database servers.

On Monday, 14 August 2017 11:54:36 UTC+1, mpapo - Michael Pailloncy wrote:
>
> Why do you want to prevent this ? Do you have a shared resource for all 
> your builds ?
> If yes, I think that this plugin will fit your needs 
> https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin 
>
> 2017-08-14 12:37 GMT+02:00 Mark Allison 
> :
>
>> I have tried to use 
>>
>> properties[(disableConcurrentBuilds)]
>>
>> but that only prevents concurrent builds within one branch in a 
>> multibranch pipeline project. Is there a way to prevent concurrent builds 
>> across all branches in a project?
>>
>> Thanks
>>
>> -- 
>> 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 jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f91f57d6-e39a-4abd-93e0-1a016434cc9f%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3b773487-e5c3-49c6-abb2-b046d20de256%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to prevent concurrent builds across all branches in a multibranch pipeline project?

2017-08-14 Thread Michael Pailloncy
Why do you want to prevent this ? Do you have a shared resource for all
your builds ?
If yes, I think that this plugin will fit your needs
https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin

2017-08-14 12:37 GMT+02:00 Mark Allison :

> I have tried to use
>
> properties[(disableConcurrentBuilds)]
>
> but that only prevents concurrent builds within one branch in a
> multibranch pipeline project. Is there a way to prevent concurrent builds
> across all branches in a project?
>
> Thanks
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/f91f57d6-e39a-4abd-93e0-1a016434cc9f%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPO77c3%2BVGPHQZ1WTHenN7J%2B0VX_fmXENwBMg%3DCr4tTN6T8-Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to prevent concurrent builds across all branches in a multibranch pipeline project?

2017-08-14 Thread Mark Allison
I have tried to use 

properties[(disableConcurrentBuilds)]

but that only prevents concurrent builds within one branch in a multibranch 
pipeline project. Is there a way to prevent concurrent builds across all 
branches in a project?

Thanks

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f91f57d6-e39a-4abd-93e0-1a016434cc9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.