I've not really used Groovy before, but found references online to using Groovy to read the current job's maven information and set environment variables.
However, they don't seem to work. I keep getting NullPointerExceptions. I've dialed back the script to the bit that returns null: import hudson.model.*; import hudson.util.*; def thr = Thread.currentThread(); def currentBuild = thr?.executable; def mavenArtifacts = currentBuild.getMavenArtifacts(); println ( "mavenArtifacts: " + mavenArtifacts); Does anyone have suggestions on what the issue might be or have a working example? Is this the right way to go about it? I need to extract the maven artifact information, particularly the version so I can parameterize the HTTP Request plugin to trigger a task on a remote system. Thanks! -- Jeff Vincent See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox <http://db.tt/9O6LfBX> !! -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.