title: How to pass jenkins build environment into pod using kubernetes plugin?
body: <p>Env: Jenkins 2.73.1 &amp; Kubernetes plugin  1.0</p>
  
  <p>Inside the container, I like to get the normal jenkins build environment variable like <code>BUILD_NUMBER</code></p>
  
  <pre>
  podTemplate(label: 'mypod', containers: [
      containerTemplate(name: 'python', image: 'python:2.7.8', ttyEnabled: true)
  ]) {
  
      node("mypod") {
          echo sh(returnStdout: true, script: 'env')
  
          container('python') {
              stage('Checkout') {
                  sh "env"
              }
          }
      }
  }
  </pre>
  
  <p>So far in the code above, inside <code>python</code>, it doesn't have the traditional build variable.</p>
  
  <p>Any solution to get those variables inside container? </p>