title: Hudson/Jenkins Plugin development: how to get environment variables of other plugin
body: <p>I'm in a somewhat old Hudson configuration. We have an in house developed plugin that query a Nexus repository and set some job parameters. The plugin is in Java.</p>
  
  <p>We also use the depreacated <a href="http://wiki.hudson-ci.org/display/HUDSON/Setenv+Plugin" rel="noreferrer">SetEnv Plugin</a>, where we set a bunch of environment variables. </p>
  
  <p>Our plugin, basically extends the ParameterDefinition class to give a bunch of options in the build job screen, then a ParameterValue class set environment variables for our jobs. </p>
  
  <p>Our Parameter Definition classe:</p>
  
  <pre><code>class NexusQueryParameterDefinition extends ParameterDefinition
  </code></pre>
  
  <p><strong>Is it possible to access the environment variables defined in the <em>SetEnv plugin</em> from our Parameter Definition class?</strong></p>
  
  <p>The problem that I'm at definition time of a a parametrized build, that is the screen between when I press the button "build now" and when I press the button "Build" to start the process. At this point I don't know how to access the job instance object and I believe the build object just will be created when the form is submitted.</p>
  
  <p>These environment variables are persisted in the <code>config.xml</code>, so if I can read this file I can parse the values. </p>