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

Kubernetes Declarative Agent Plugin does not populate env map

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      JENKINS-45198 was fixed in Declarative 1.2 but the env map doesn't seem to populate correctly when using the Kubernetes agent.
       
      It looks like the Kubernetes agent is calling `checkout scm` directly instead of the fix Andrew implemented for JENKINS-45198. In the 'checkoutAndRun' method the env variables map is getting populated if anything is returned otherwise it does not populate env.
       
      If I skipDefaultCheckout and do the checkout myself it works fine.
       
       

            csanchez Carlos Sanchez
            hrmpw Patrick Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: