title: Jenkins custom pipeline and how to add property to be set in jenkinsfile
body: <p>I'm trying to create a custom pipeline with groovy but I can't find anywhere on the web where it is discussed how to add a property that can be set in the jenkinsfile.  I'm trying to add a curl command but need the URL to be set in the jenkinsfile because it will be different for each build.</p>
  
  <p>Can anyone explain how that should be done or links where it has been discussed?</p>
  
  <p>Example Jenkinsfile:</p>
  
  <pre><code>msBuildPipelinePlugin
  { 
      curl_url = "http://webhook.url.com" 
  }
  </code></pre>
  
  <p>custom pipeline groovy code:</p>
  
  <p>def response = sh(script: 'curl -i -X POST -H 'Content-Type: application/json' -d '{"text","Jenkins Info.\nThis is more text"}' curl_url, returnStdout: true)</p>
  
  <p>Thanks</p>