• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • Jenkins 2.289.3

      With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

      podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
       node('selenium-slave')
        { ... }
      }
      

      Am I doing anything wrong here ? With declarative pipelines, it works fine.

          [JENKINS-66378] Podtemplate not taking cloud parameter

          Raphael created issue -
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
             node('selenium-slave') {
               container('selenium') {
                 timestamps \{ ... }

               }

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {
                container('selenium')
                 timestamps \{ ... }
               }

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {
                container('selenium')
                 timestamps \{ ... }
               }

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {     

             container('selenium')       

             timestamps \{ ... }

               }

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {     

             container('selenium')       

             timestamps \{ ... }

               }

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {

            ...

           

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave') {

            ...

           

            }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave')
          }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks',) {
              node('selenium-slave')
          }

          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
          node('selenium-slave') {
          ...
          }
          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           
          {quote}podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
          node('selenium-slave') {
          ...
          }
          }
          {quote}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave'){

           ... }

          }

           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          Raphael made changes -
          Description Original: Hi

          With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave'){

           ... }

          }

           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.

           

          Thanks a lot

          Raphael
          New: With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave')

          { ... }

          }

           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.
          Raphael made changes -
          Description Original: With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave')

          { ... }

          }

           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.
          New: With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

           
          {code:java}
          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave')
            { ... }
          }
          {code}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.
          Raphael made changes -
          Description Original: With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 

           

           
          {code:java}
          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave')
            { ... }
          }
          {code}
           

          Am I doing anything wrong here ? With declarative pipelines, it works fine.
          New: With scripted pipelines I have multiple cloud (Kubernetes) configured and it randomly use one or the other even if the cloud is set in the podtemplate. 
          {code:java}
          podTemplate(inheritFrom: 'selenium-slave',cloud: 'cloudEks') {
           node('selenium-slave')
            { ... }
          }
          {code}
          Am I doing anything wrong here ? With declarative pipelines, it works fine.

            Unassigned Unassigned
            raphperrin Raphael
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: