'trigger jenkins job with file paramter

I have a python script. I need to trigger jenkins job remotely using file parameter. That means I have a file and that file needs to be uploaded to remote Jenkins pipeline job. Please let me know if it will work or not ? Please guide.



Solution 1:[1]

you can add a string parameter with your file's path. in addition, you can use "file parameter" as described in Jenkins documentation: here, and referenced in the SO question here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1