title: Jenkins job-dsl-plugin: how to inject environment variables to an Ivy job?
body: <p>I have a Jenkins Ivy job that uses the <code>Inject environment variables to the build process</code> step. I am writing a DSL script so that I can dynamically create this job with the <code>job-dsl-plugin</code> plug-in.</p>
  
  <p>I set up the following lines for this:</p>
  
  <pre><code>steps {
    envInjectBuilder {
      propertiesFilePath('/tmp/file')
    }   
  }
  </code></pre>
  
  <p>but the <code>steps</code> method can only be applied to a free-style job and not to an Ivy job. I get this in the console output:</p>
  
  <pre><code>Processing DSL script ivyJob.groovy
  java.lang.IllegalStateException: steps cannot be applied for Ivy jobs
  </code></pre>
  
  <p>Doesn't the DSL plug-in support EnvInject for an Ivy job? If it doesn't, is there a way I can do this programmatically? I know EnvInject is compatible with Ivy jobs since I can manually create the very job.</p>
  
  <p>Thanks.</p>