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
wrote:
> Thank you for your suggestion but I don't understand where I set the label
> ?
>
> I
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, a écri
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
Oops 🤐
Sorry I will test it. Thank you very much
Le ven. 18 janv. 2019 à 09:21, Carlos Sanchez 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,
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 wrote:
> Thank you for your answer !
>
> So If i have a k8s cloud cloud1 and another one cloud2
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
i
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
wrote:
> Hello
> The jenkins GUI allows the creation of
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