Machine environment variables not passed to pipeline

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

XMLWordPrintable

      If I run a pipline that contains:

       

      node('some-machine') {
        checkout scm
        sh(script 'env')
      }

       

      I expect the checkout scm and the script to be passed the environment variables I defined in the machine configuration (Node properties > Environment variables in http://hostname/jenkins/computer/some-machine/configure), as that is passed to the Git Plugin and non-pipeline jobs. Not having this causes problems on some machines (in my case I can't run git through the pipeline)

       

            Assignee:
            Unassigned
            Reporter:
            Gibson Fahnestock
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: