Re: jenkins DSL Gerrit Project setup

2015-09-17 Thread GC
Thank you HTH,

I will try to get it configure block, I have seen the usage of the 
configure block in the docs but making sure I am not missing anything 
obvious here. 

On Wednesday, September 16, 2015 at 9:56:57 PM UTC-7, Baptiste Mathus wrote:
>
> Yes. Using it for around twenty jobs. 
> You might need to read about what's called the "configure block" here.
>
> Didn't check for that very case, but job dsl has a nice way to generate 
> custom xml when it doesn't (yet) support a plugin or a specific plugin's 
> use case.
>
> I remember we indeed used the configure block for Gerrit trigger.
>
> HTH
> Cheers 
> Le 17 sept. 2015 1:45 AM, "GC"  
> a écrit :
>
>> basically missing or cannot figure out how to generate the below 
>>
>>   
>>
>> 
>> 
>>
>>   ANT
>>
>>   builds/code1/**
>>
>> 
>> 
>>
>> 
>> 
>>
>>   ANT
>>
>>   buildz/code3/
>>
>> 
>> 
>>
>>  
>>
>> On Wednesday, September 16, 2015 at 4:37:28 PM UTC-7, GC wrote:
>>>
>>> Hello Jenkins Users, 
>>>
>>> Is anyone using DSL to generate the jobs that Gerrit Trigger ? 
>>> Basically we want to get file path restriction on the trigger.
>>>
>>> Below snippet 
>>>   triggers {
>>> gerrit {
>>>   events {
>>> patchsetCreated()
>>> commentAdded()
>>>project('project', 'reg_exp:.*')
>>>   }
>>> }
>>>   }
>>>
>>> generates the xml with branches, but cannot find any documentation on 
>>> how to setup on the file reg_exp. 
>>>
>>> generated xml: 
>>>
>>> 
>>> 
>>> 
>>> PLAIN
>>> project
>>> 
>>> 
>>> 
>>> REG_EXP
>>> .*
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> Any help much appreciated. 
>>>
>> -- 
>> 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/524e67ca-72df-4485-96b6-8cac25d3b9fb%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/1e60376b-798c-4d46-8a23-fc982f207a40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins DSL Gerrit Project setup

2015-09-16 Thread GC
Hello Jenkins Users, 

Is anyone using DSL to generate the jobs that Gerrit Trigger ? 
Basically we want to get file path restriction on the trigger.

Below snippet 
  triggers {
gerrit {
  events {
patchsetCreated()
commentAdded()
   project('project', 'reg_exp:.*')
  }
}
  }

generates the xml with branches, but cannot find any documentation on how 
to setup on the file reg_exp. 

generated xml: 




PLAIN
project



REG_EXP
.*







Any help much appreciated. 

-- 
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/5110a30f-8080-4339-a62a-918dafc70c46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins DSL Gerrit Project setup

2015-09-16 Thread GC
basically missing or cannot figure out how to generate the below 

  




  ANT

  builds/code1/**







  ANT

  buildz/code3/




 

On Wednesday, September 16, 2015 at 4:37:28 PM UTC-7, GC wrote:
>
> Hello Jenkins Users, 
>
> Is anyone using DSL to generate the jobs that Gerrit Trigger ? 
> Basically we want to get file path restriction on the trigger.
>
> Below snippet 
>   triggers {
> gerrit {
>   events {
> patchsetCreated()
> commentAdded()
>project('project', 'reg_exp:.*')
>   }
> }
>   }
>
> generates the xml with branches, but cannot find any documentation on how 
> to setup on the file reg_exp. 
>
> generated xml: 
>
> 
> 
> 
> PLAIN
> project
> 
> 
> 
> REG_EXP
> .*
> 
> 
> 
> 
> 
> 
>
> Any help much appreciated. 
>

-- 
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/524e67ca-72df-4485-96b6-8cac25d3b9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins DSL Gerrit Project setup

2015-09-16 Thread Baptiste Mathus
Yes. Using it for around twenty jobs.
You might need to read about what's called the "configure block" here.

Didn't check for that very case, but job dsl has a nice way to generate
custom xml when it doesn't (yet) support a plugin or a specific plugin's
use case.

I remember we indeed used the configure block for Gerrit trigger.

HTH
Cheers
Le 17 sept. 2015 1:45 AM, "GC"  a
écrit :

> basically missing or cannot figure out how to generate the below
>
>   
>
>
> 
>
>   ANT
>
>   builds/code1/**
>
>
> 
>
>
> 
>
>   ANT
>
>   buildz/code3/
>
>
> 
>
>  
>
> On Wednesday, September 16, 2015 at 4:37:28 PM UTC-7, GC wrote:
>>
>> Hello Jenkins Users,
>>
>> Is anyone using DSL to generate the jobs that Gerrit Trigger ?
>> Basically we want to get file path restriction on the trigger.
>>
>> Below snippet
>>   triggers {
>> gerrit {
>>   events {
>> patchsetCreated()
>> commentAdded()
>>project('project', 'reg_exp:.*')
>>   }
>> }
>>   }
>>
>> generates the xml with branches, but cannot find any documentation on how
>> to setup on the file reg_exp.
>>
>> generated xml:
>>
>> 
>>
>> 
>> PLAIN
>> project
>> 
>>
>> 
>> REG_EXP
>> .*
>>
>> 
>> 
>>
>> 
>> 
>>
>> Any help much appreciated.
>>
> --
> 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/524e67ca-72df-4485-96b6-8cac25d3b9fb%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/CANWgJS4B_xajVvcdXct5YrO2oTzGtcY8DAyuotxnMtKUQABekQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.