Created
May 13, 2014 05:40
-
-
Save praveenkumar/2f4514be96aa9ccd21f8 to your computer and use it in GitHub Desktop.
Jenkins Job invoke with file parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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