title: Jenkins pipeline job: Set sleep time from a string parameter?
body: <p>I'm new to Jenkins Pipeline jobs, and I'm facing an issue I cannot solve.</p>
  
  <p>I have a stage with a hardcoded <code>sleep</code> seconds value:</p>
  
  <pre><code>stage ("wait_prior_starting_smoke_testing") {
    echo 'Waiting 5 minutes for deployment to complete prior starting smoke testing'
    sleep 300 // seconds
  }
  </code></pre>
  
  <p>But I would like to provide the time argument via a job (string) parameter <code>SLEEP_TIME_IN_SECONDS</code>. But whatever I have tried, I am not able to get it to work.</p>
  
  <p>How do you convert a string parameter to the <code>int</code> time argument?</p>