Re: Pipeline generic for two Jenkins with two different agent types

2020-02-16 Thread Georges Moulinier
Thanks Ivan for your answer.

Do you think I could "hide" this syntax " kubernetes { ..." or this "docker 
{ ..." behind a label ?

A label represent a slave declared in Jenkins. But in my case I did'nt 
declare slaves directly. For one of my Jenkins master I just declared a 
Kubernetes cluster.


Le vendredi 14 février 2020 19:58:51 UTC+1, Ivan Fernandez Calvo a écrit :
>
> You can detect what Jenkins master is running the pipeline by checking the 
> environment bar JENKINS_URL , agent labels accept variables, so a simple 
> way can be use the JENKINS_URL in the labels some thing like 
>
> agent { label “${JENKINS_URL} && linux”} 
>
> If JENKINS_URL is ‘http:// intance1.example.com’ Itwill take an agent 
> defined with the label http:// intance1.example.com and linux 
>
>

-- 
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/8a4c146d-2962-43b9-8af6-231cd4a58905%40googlegroups.com.


Re: Deletion of a GitHub Repository in a GitHub Organization

2020-02-16 Thread Georges Moulinier
Hi,

Maybe you have to configure the Orphaned Item Strategy in the Jenkins 
project.

By default, Jenkins keeps repo or branch even if they are "orphaned" (no 
more link with git repo).

You can add the value 0 to "Days to keep old items" and to "Max # of old 
items to keep".


Le dimanche 16 février 2020 09:14:23 UTC+1, Maik Brauer a écrit :
>
> Hi Jan,
>
> yes, it stays still with the list. Did it several times. No change.
>
> Am Sonntag, 16. Februar 2020 05:14:56 UTC+1 schrieb Jan Monterrubio:
>>
>> Does it disappear if you force an Organization Scan?
>>
>> On Sat, Feb 15, 2020 at 15:10 'Maik Brauer' via Jenkins Users <
>> jenkins...@googlegroups.com> wrote:
>>
>>> Hi,
>>>
>>>  
>>>
>>> I have a GitHub Repository inside a GitHub Organization. All is properly 
>>> scanned by Jenkins.
>>>
>>> When no deleting a GitHub Repo, I would expect that it will be deleted 
>>> also from the Jenkins GitHub Organization.
>>>
>>> It still stays there. What else can we do to get rid of this Repo 
>>> Finally?
>>>
>>> Thanks.
>>>
>>>  
>>>
>>> Cheers
>>>
>>> Maik
>>>
>>> -- 
>>> 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 jenkins...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/acc20ca2-fdae-4ed0-bf0f-4b72839d1cba%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cd2b5c29-e67f-46cc-a82e-674b59ffe2e2%40googlegroups.com.


Re: Pipeline generic for two Jenkins with two different agent types

2020-02-14 Thread Georges Moulinier
Does anyone have an idea ?

Le jeudi 6 février 2020 14:00:50 UTC+1, Georges Moulinier a écrit :
>
> Hi !
>
>  
>
> I want to know how can I use different agent type in my pipeline in 
> function of the Jenkins master executing it ?
>
>  
>
> There are two Jenkins master target :
>
> One is using a kubernetes cluster for providing agent containers : agent { 
> kubernetes { ...
>
> One is using a docker agent : agent { docker ...
>
>  
>
> I am looking for a solution to make a pipeline generic which can be 
> executed on both.
>
> The idea is not to have stage duplications on the pipeline.
>
>  
>
> Is it possible ?
>
>  
>
> 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/6d6acb4e-7816-4404-b767-b12910fe3f14%40googlegroups.com.


Pipeline generic for two Jenkins with two different agent types

2020-02-06 Thread Georges Moulinier
 

Hi !

 

I want to know how can I use different agent type in my pipeline in 
function of the Jenkins master executing it ?

 

There are two Jenkins master target :

One is using a kubernetes cluster for providing agent containers : agent { 
kubernetes { ...

One is using a docker agent : agent { docker ...

 

I am looking for a solution to make a pipeline generic which can be 
executed on both.

The idea is not to have stage duplications on the pipeline.

 

Is it possible ?

 

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/f0a1ffc7-522a-40fd-a8cf-7985f62a84d6%40googlegroups.com.