Answers: <p>I recommend that you use the <strong>printenv</strong> command for list system Variable:</p>
  
  <pre><code>printenv
  </code></pre>
  
  <p>and also An easy way to obtain the Jenkins environment variables list from your local installation is to append env-vars.html to the server's URL. the URL would be </p>
  
  <p><code>http://{jenkins_url}/env-vars.html</code></p>
  
Answers: CC BY-SA 4.0
Answers: 2019-01-17T07:56:00.783Z
Answers: 2019-01-17T07:56:00.783Z
Answers: Subhash
Answers: <p>AFAIK, <strong><em>environment variables</em></strong> are not folder/directory specific, but user specific, that means, for any user its loaded when the user logins into the shell or source the profile which contains the added environment variables (like ~/.bash_profile). So, if your environment variables are present at root directory, it should be present at the folder/job level as well unless your new bash where this job is running, doesn't loads the environment variable, for which you can test them using the below commands in the job to see if those variables are present or not:</p>
  
  <pre><code>pwd
  echo $PATH
  env
  </code></pre>
  
  <p>if not present, you can source your profile in the job using <code>. .bash_profile</code> and check if all variables are present or not</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-01-16T13:38:30.553Z
Answers: 2019-01-16T13:38:30.553Z
Answers: rebelution
Body: <blockquote>
    <p>Using configure option, when we check the environment variables, we
    get only the variables which are available with in the folder or job.
    But, I want to get complete list of env variable from the root folder
    to the folder/job, which I want to see.</p>
  </blockquote>
  
Tags: <jenkins><jenkins-pipeline><configuration><environment-variables>
Title: How to get list of env variables from the root folder to jenkins job?
UserDisplayName: omkar sirra
ThreadText: # How to get list of env variables from the root folder to jenkins job?
  
  (Asked by: username_0 on 2019-01-16)
  
  > Using configure option, when we check the environment variables, we
  > get only the variables which are available with in the folder or job.
  > But, I want to get complete list of env variable from the root folder
  > to the folder/job, which I want to see.
  
  **Tags:** jenkins, jenkins-pipeline, configuration, environment-variables
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-01-17. Score: 1
  
  I recommend that you use the **printenv** command for list system Variable:
  
  ```
  printenv
  
  ```
  
  and also An easy way to obtain the Jenkins environment variables list from your local installation is to append env-vars.html to the server's URL. the URL would be
  
  `http://{jenkins_url}/env-vars.html`
  
  
  ---
  
  ### Answer by username_2 on 2019-01-16. Score: 0
  
  AFAIK, ***environment variables*** are not folder/directory specific, but user specific, that means, for any user its loaded when the user logins into the shell or source the profile which contains the added environment variables (like ~/.bash\_profile). So, if your environment variables are present at root directory, it should be present at the folder/job level as well unless your new bash where this job is running, doesn't loads the environment variable, for which you can test them using the below commands in the job to see if those variables are present or not:
  
  ```
  pwd
  echo $PATH
  env
  
  ```
  
  if not present, you can source your profile in the job using `. .bash_profile` and check if all variables are present or not
  
  
  ---
  
  