Thank you for your answer !
So If i have a k8s cloud cloud1 and another one cloud2 I can use the label
to select one of them ?
In this sample (see bellow) I don't see where I have to insert the label ?
pipeline {
agent {
kubernetes {
label "bd-${random}"
yaml """
spec:
containers:
- name: node
image: node:8
command:
- cat
tty: true
"""
}
}
Le jeudi 17 janvier 2019 17:44:43 UTC+1, Carlos Sanchez a écrit :
>
> all cloud definitions are used by matching the labels of the pod templates
> and your job labels
>
>
> https://wiki.jenkins.io/display/JENKINS/Distributed+builds#Distributedbuilds-Nodelabelsforagents
>
>
> On Thu, Jan 17, 2019 at 5:29 PM Tristan FAURE <[email protected]
> <javascript:>> wrote:
>
>> Hello
>> The jenkins GUI allows the creation of several Kubernetes cloud, how does
>> it work ?
>> Are they all used or only one ? If many is OK Is there a way to select a
>> specific cluster in my pipeline ?
>>
>> Thank you in advance
>>
>> Tristan FAURE
>>
>> --
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CA%2BtQ8YPdE_ydXeZ6k1%2B4V07jQu8knFqby%2B4jsD0YpUpOjdCb8w%40mail.gmail.com
>>
>> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BtQ8YPdE_ydXeZ6k1%2B4V07jQu8knFqby%2B4jsD0YpUpOjdCb8w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/4689b90c-7980-4ffc-8fab-9ee0799945f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.