Skip to content

Instantly share code, notes, and snippets.

@praveenkumar
Created May 13, 2014 05:40
Show Gist options
  • Save praveenkumar/2f4514be96aa9ccd21f8 to your computer and use it in GitHub Desktop.
Save praveenkumar/2f4514be96aa9ccd21f8 to your computer and use it in GitHub Desktop.
Jenkins Job invoke with file parameter
data_file = open('<file_name>', 'r')
running_job_object = new_job.invoke(block=True,
build_params={'<para1>': '<value>', '<para2>': '<value>'},
files={'<file_para_name>': data_file})
data_file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment