I am executing parameterised build in jenkins to count no. of lines in file which has 1 file parameter. Its file location is pqr. The name of the script file is
pqr
There is a workaround for this issue https://github.com/janvrany/jenkinsci-unstashParam-library and in a pipeline script you do:
library "jenkinsci-unstashParam-library" node { def file_in_workspace = unstashParam "file" sh "cat ${file_in_workspace}" }