title: Jenkins parameterized pipeline fail
body: <p>How should pipeline/jenkinsfile syntax look to be triggered by parameterized trigger via curl for example? </p>
  
  <p>I'm having the pipeline that starts with: </p>
  
  <pre><code>pipeline{  
      parameters {
          string(name: 'mycommitid', defaultValue: 'nocommit', description: 'my parameterized build')   
      }
      properties([
          parameters([
              string(defaultValue: 'nocommit', description: 'fas', name: 'mycommitid')
          ])
      ])
      node{...}
  }
  </code></pre>
  
  <p>By setting this in the code my pipeline won't be triggered, only if I set it manually in build triggers section in jenkins. But the goal is to use it in the multibranch pipelines and jenkinsfiles. </p>
  
  <p>The output I'm getting is (the hash here is some random number i typed as example):</p>
  
  <pre><code>git rev-parse 4364576456fgds467734ss344c^{commit} # timeout=10 
  ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
  
  Finished: FAILURE 
  </code></pre>
  
  <p>And having the commit passed, how do you advise should I build only that single revision? </p>