I have an old freestyle project, and now trying to write a Jenkins file to run another job.
But I need to use some parameters from the old one. I tried different solution from documentation, none of them worked.
Q: How can I retrieve the old freestyle project parameters and use it in my Jenkins file?
The version is setting in the old one.in new one i have:
parameters { string(name: 'Version', defaultValue: '', description: 'test')
string(name: 'JOBNAME', defaultValue: '', description: 'test') } .
Now I want to default value get set from the old freestyle job.