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

Node environment variables don't override global values in pipeline job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • Windows Server 2008R2 system,
      Jenkins ver. 2.32.2,
      Pipeline ver 2.5

      Hi.

      I found such issue:

      I defined global environment variable 

      Then I defined environment variable for my master node

      I have such pipeline script

       

      And an output for the script is 

      In description for node env variables we have such message "Environment variables defined here will be made available to every build executed by this agent, and will override any environment variables that have the same Name as those defined on the Configure System page. "

      So it has to override a global value.

      I this this issue is somehow connected with these changes

      https://github.com/jenkinsci/workflow-job-plugin/pull/43

      Thank you.

            Unassigned Unassigned
            asavanchuk Alaiksei Savanchuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: