How to overcome Jenkins pipeline inability to use file parameters

Recently I was trying to implement a Jenkins pipeline which can take a file as a build parameter.

I was planning to use the Jenkins File parameter feature for this purpose.

Jenkins provides a File parameter which allows a build to accept a file, to be submitted by the user when scheduling a new build. The file will be placed inside the workspace at the known location after…