I'm setting up Jenkins to do several CI jobs. Setting up the second job, I find myself copying the contents of 'Execute shell' build steps from the first job, verbatim to the second job (because I've already used parameters wherever I can, so it gets ${project} ${version} from source control and project and version are set in the jobs environment using the Environment Injector Plugin).
I don't like this copying (I've already had to go back and copy over fixes).
How can I share these scripts (or even better: parts of scripts) within Jenkins?