How to upload file to jenkins and use it for build?
<p>I am very new to Jenkins, and I have been trying to use curl to build my job. Along with this curl I want to send a file to Jenkins which should be placed in particular directory of my workspace. I have been googling alot, but could not seem to find clear documentation that could lead me to solution. Please Guide. I looked at some other articles on Google and StackOverflow as well, but couldn't find what I am looking for. </p>

<blockquote>
  <p>curl -X POST JENKINS_URL/job/JOB_NAME/build \
    --form file0=/home/abc.xml \
    --form json='{"parameter": [{"name":"/workspace", "file":"file0"}]}'</p>
</blockquote>

<p>I tried this as well, didn't seem to work.</p>