In Jenkins/Hudson, with the help of a Postbuild Groovy script, I would like to get one of the following:
If you're using Groovy script within "Env Inject", you can get current build and current job by:
currentJob.getName() currentBuild.toString()