Kubernetes Declarative Agent Plugin does not populate env map

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.
       
       

            Assignee:
            Carlos Sanchez
            Reporter:
            Patrick Wolf
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: