title: Pass Build inputs from Jenkins to python
body: <p>I am new to Jenkins and Python. I have jenkings test build Project with build parameters. Below is the screen shot for reference.</p>
  
  <p><a href="https://i.stack.imgur.com/OCoU8.png" rel="noreferrer">ScreenShot of build Parameters</a></p>
  
  <p>I need to Pass this inputs to python script "test.py"</p>
  
  <p>My execute command is looks like below:</p>
  
  <pre><code>    /usr/bin/python2.7 /scripts/test.py
  </code></pre>
  
  <p>test.py script: </p>
  
  <pre><code>  import time
    import os
    input1 = os.getenv("input1")
    input2 = os.getenv("input2")
    Dropdown = os.getenv("Dropdown1")
    Dropdown2 = os.getenv("Dropdown2")
    print input1
    print input2
    print Dropdown
    print Dropdown2
  </code></pre>
  
  <p>Console output:</p>
  
  <pre><code>Building in workspace /root/.jenkins/workspace/Inputs-Test
  [Inputs-Test] $ /bin/sh -xe /tools/apache-tomcat-8.5.24/temp/jenkins3261310337115825812.sh
  + /usr/bin/python2.7 /project/test.py
  None
  None
  None
  None
  Finished: SUCCESS
  </code></pre>