Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68606

Wrong cloud node configuration selected while using inherit from

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • kubernetes-plugin
    • None
    • jenkins: 2.232.3
      kubernetes: 3580.v78271e5631dc

      Context:

      • Jenkins master is running in Kubernetes cluster and deploy through Helm chart.
      • A node Cloud configuration is added by default (name: `kubernetes`) with a `k8s-agent` pod template.
      • An external Kubernetes is added to node Cloud configuration (name: `specific`) with a `k8s-specific` pod template.

      When running pipelines:

      pipeline {
          agent {
              kubernetes {
                  inheritFrom 'k8s-agent'
              }
          }
          
          stages {
              stage('Main') {
                  steps {
                      echo 'Bonjour'
                  }
              }
          }
      }

      Pod is provisionned on `specific` Kubernetes cluster instead of `kubernetes` one)

            Unassigned Unassigned
            loganmzz Logan Mzz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: