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

Dynamic agent not setting the right namespace from yaml

XMLWordPrintable

      I'm using the Kubernetes plugin version: 3896.v19b_160fd9589 (Kubernetes-plugin)

      When using Multibranch Pipeline, I noticed a strange behaviour. When building different branches of the same multibranch pipeline simultaneously, the dynamic agent created for a new build is placed in the same namespace as the first build. This means that if you start building, for example, the "develop" branch and then immediately start building the "staging" branch, the dynamic agent for "staging" will be created in the same namespace is running the agent for develop, even if you are specifying different namespace in the yaml.

      This only happens in that particular scenario, if I build a specific branch, wait till the job finish and then start another brnach, all work as expected, dynamic agent are provisioned in the correct namespace I'm specifying in the yaml.

      This also work as expected if Im running different multibranch pipeline at the same time, int this case all the simultaneous dynamic agents run on their correct namespaces.

       

       

       

            Unassigned Unassigned
            tinchouy Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: