Oops 🤐 Sorry I will test it. Thank you very much Le ven. 18 janv. 2019 à 09:21, Carlos Sanchez <[email protected]> a écrit :
> In the pipeline you need the "cloud" parameter > > > https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pod-and-container-template-configuration > > On Fri, Jan 18, 2019, 09:02 Tristan FAURE <[email protected]> wrote: > >> 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]> >>> 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]. >>>> 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 >> <https://groups.google.com/d/msgid/jenkinsci-users/4689b90c-7980-4ffc-8fab-9ee0799945f1%40googlegroups.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 a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/eBHsxw01nmo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6PdB6a5S0qTogucnV2g7axfY%2Bi%2B-Y7Y_gpVz%2BCgh-cv7g%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6PdB6a5S0qTogucnV2g7axfY%2Bi%2B-Y7Y_gpVz%2BCgh-cv7g%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/CA%2BtQ8YPis%3D3KHjvauYVcbUoTEgVRD3KnR-WXAeMMNNGU5nEy3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
