you have to choose cloud1 or cloud2 not "cloud1 || cloud2" you can have multiple clouds, but need to decide which one to use when creating the pod template
On Tue, Jan 22, 2019 at 12:58 PM Tristan FAURE <[email protected]> wrote: > Thank you for your suggestion but I don't understand where I set the label > ? > > I tried this (not working) : > agent { > kubernetes { > cloud "cloud1 || cloud2" > label "pod ID" > > yaml """ > spec: > containers: > - name: docker > > Le mar. 22 janv. 2019 à 12:56, <[email protected]> a écrit : > >> on the Jenkin pipeline select the level and you can provide multiple >> lavels also . like cloud1 || cloud2 .. This will ensure job will execute on >> any of one the cloud and this will make sure job will execute on the active >> cluster if any one of the cluster is down/not active >> >> On Friday, January 18, 2019 at 1:53:30 PM UTC+5:30, Tristan FAURE wrote: >>> >>> 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 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/97cc7635-2856-4cf3-a6f6-7b971e1a1fdc%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/97cc7635-2856-4cf3-a6f6-7b971e1a1fdc%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 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%2BtQ8YP3SY-fe41Nd9bgdHK2OYFCbUYtLAjAUzpFA98efQ5s0g%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BtQ8YP3SY-fe41Nd9bgdHK2OYFCbUYtLAjAUzpFA98efQ5s0g%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/CALHFn6N7epVzdcZw7Axy3whCgnbwUWSFuKqH9LxeirJkHuot8w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
