Java – how to get the user name of the user who started the build in Hudson
•
Java
I am using the groovy post build plug-in
http://wiki.hudson-ci.org/display/HUDSON/Groovy +Postbuild+Plugin
I want to access the user name of the user who started the build What is the correct variable for this?
Solution
I'm running something that looks like this:
def build = manager.build // "manager" for Groovy Postbuild plugin,only def usercause=build.getCause(hudson.model.Cause$UserCause) def thename=usercause.userName
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码