title: Missing Property Exception on trigger build
body: <p>I am getting the following error: <code>No. Such property: $env for class:  WorkflowSscript</code></p>
  <p>Here is my implementation:</p>
  <pre><code>node('test node') {
      stage ('apply terraform') {
      // this stage is passing successfully
          env_meta = getEnvMeta(&quot;test&quot;, &quot;${env.ENV_NAME}&quot;)
      }
  
      stage ('Run Env Tets'){
          build job: 'infra_tets', parameters: [
              string (name: 'UI_TESTS', value: 'all'),
              string (name: 'env', value: String.valueOf($env.ENV_NAME)),
          ]
      }
  }
  </code></pre>