title: Jenkins/Hudson Groovy Script Console: Flexibility
body: <p>I really like being able to run Groovy scripts in Hudson (or Jenkins, but I use Hudson).</p>
  
  <p>For example, see my question <a href="https://stackoverflow.com/questions/29954975/in-groovy-how-do-i-get-the-list-of-parameter-names-for-a-given-job[get">In Groovy, how do I get the list of parameter names for a given job?</a> Hudson parameter names question][1]</p>
  
  <p>The thing is, now I'd like use these Groovy scripts like a keyboard macro or utility. I want to be visiting one of my jobs, hit the special keystroke, and voila, the Groovy script is run. I leave it as an exercise for myself to pick up parameters from environment of current job.</p>
  
  <p>Does anybody out there do this sort of thing, and if so, what strategy has been useful. So far, all I know how to do is bring up the script console, pasted in my code, edit the variable containing the name of the Hudson job, and hit "run". Kinda klunky. Suggestions appreciated.</p>