try using double quote:
sh "python deploy.py ${params.version}"
I think single quotes do not evaluate strings
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ee254c70-8c73-4a77-bf55-4c20e9613cfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.