title: Jenkins Parameterized Build with Jenkinsfile from SCM
body: <p>We have some jenkins pipeline jobs defined with Jenkinsfile's located in bitbucket server, <a href="https://jenkins.io/doc/book/pipeline/getting-started/#defining-a-pipeline-in-scm" rel="nofollow noreferrer">as described here</a>. These builds are parameterized, and we'd like to be able to manually run them with non-default parameters.</p>
  
  <p>The problem is, since the Jenkinsfile isn't checked out until we run it, the first time we run the build the build button is just "Build Now" instead of "Build with Parameters". Currently we are running it once with the default values so that it fails, and then running it again with the "Build with Parameters" button so we can pass in what we want.</p>
  
  <p>Obviously not ideal. What is the right way to do this so we can run it with custom parameters the first time?</p>