title: Build parameters are used only in pre-step
body: <p>I have defined the <code>SELENIUM_SERVER</code> String Parameter for the Jenkins job.</p>
  
  <p>The job also has the pre-build step:</p>
  
  <p><em>Invoke top-level Maven targets</em> which does</p>
  
  <p><code>install -Dproject.build.sourceEncoding=Cp1252</code></p>
  
  <p>and build step which also invokes Maven with the following goal</p>
  
  <p><code>test -DseleniumServer=${SELENIUM_SERVER}</code></p>
  
  <p>But when I run the job, it looks like the parameter is used only on the stage of running the pre-build step and ignored on the build step stage.</p>
  
  <p>The log says the following:</p>
  
  <p><code>[Automation] $ /home/build/tools/hudson.tasks.Maven_MavenInstallation/Maven_3/bin/mvn -DSELENIUM_SERVER=&lt;server1&gt; install</code></p>
  
  <p>... and the parameter not mentioned anywhere in the context of <code>test</code>.</p>
  
  <p>This results in the exception:</p>
  
  <p><code>org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.</code></p>
  
  <p>If I remove the pre-build step, the parameter is applied to the build step correctly.</p>
  
  <p>How can I make the parameter applied to the build step, not only to the pre-build step?</p>
  
  <p>Thanks in advance!</p>