title: Create Job Dynamically in Jenkins
body: <p>I have a job in <code>jenkins</code> with a configuration, then, with the <code>jenkins</code> API in <code>/cli</code>  i can <code>get-job</code> (API method) with an <code>xml</code> structure of my job and then i can <code>create-job</code> (API method) in <code>jenkins</code> with the followed xml.</p>
  
  <pre><code>?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;project&gt;
   &lt;actions/&gt;
    &lt;description&gt;&lt;/description&gt;
    &lt;keepDependencies&gt;false&lt;/keepDependencies&gt;
    &lt;properties/&gt;
  &lt;scm class="hudson.plugins.git.GitSCM" plugin="git@2.2.7"&gt;
  &lt;configVersion&gt;2&lt;/configVersion&gt;
  &lt;userRemoteConfigs&gt;
    &lt;hudson.plugins.git.UserRemoteConfig&gt;
    &lt;url&gt;https://username:password@bitbucket.org/repoowner/project.git&lt;/url&gt;
    &lt;credentialsId&gt;550e8400-e29b-41d4-a716-446655440000&lt;/credentialsId&gt;
    &lt;/hudson.plugins.git.UserRemoteConfig&gt;
  &lt;/userRemoteConfigs&gt;
  ....
  </code></pre>
  
  <p>Even if i give this <code>url</code> tag "<a href="https://username:password@bitbucket.org/repoowner/project.git" rel="nofollow">https://username:password@bitbucket.org/repoowner/project.git</a>" jenkins needs authentication to work, so in <code>credentialsId</code> tag jenkins give an UUID.</p>
  
  <p>I want to be able to create a job dynamically by an external application with a given URL in this format "<a href="https://username:password@bitbucket.org/repoowner/project.git" rel="nofollow">https://username:password@bitbucket.org/repoowner/project.git</a>".</p>
  
  <p>How can it be done?</p>
  
  <p>Thanks.</p>