|
Basically, I execute a job via a remote PC and POSTing to Jenkins using python's requests module. i.e.
Unable to find source-code formatter for language: python. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
import requests
with open("file.zip", "rb") as z:
file_to_send = {"jenkins_file.zip": z}
requests.post("http://jenkins.local:8080/job/my_job/buildWithParameters", files=file_to_send)
An upload_*.tmp file is created in /tmp directory of the master after executing the script. The master then builds the job on one of its nodes but the tmp file is not deleted even after the build is completed.
I observed that jenkins_file.zip is created in the node's workspace once the job starts building (as expected) but no file is copied/created in the node's java.io.tmpdir directory.
The instructions for configuring my job's parameters are documented here: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build
[~Christopher Orr] I tried using your curl command with my job but it doesn't seem to set the parameters correctly. The parameters do not reflect on the http://jenkins.local:8080/job/my_job/build_number/parameters page. Although, I noticed that this time, it automatically deleted the upload_*.tmp that was generated.
|