title: How can a pre-send script retrieve parameters of a parameterized Jenkins job?
body: <p>I would like to cancel email sending based on the value of a boolean parameter of a parameterized job. The parameter is named "skip.email".</p>
  
  <p>I tried to write a pre-send script with following content but it doesn't work :</p>
  
  <pre><code>def env = System.getenv()
  logger.println("Should I skip email ? " + env['skip.email'])
  cancel = env['skip.email']
  </code></pre>
  
  <p>Here is what I see in the logs :</p>
  
  <pre><code>Should I skip email ? null
  </code></pre>
  
  <p>I tried to print out all environment variables, but none of the parameters of my parameterized Jenkins job are in the list.</p>
  
  <p>Please help me out, thank you in advance !</p>