提交 4f0bd429 编写于 作者: V vjuranek

Merge pull request #522 from RiotGames/JENKINS-14393

Fix for JENKINS-14393: Expose more information about who triggered a build via jenkins-cli.jar
......@@ -25,7 +25,7 @@ package hudson.cli;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.Cause;
import hudson.model.Cause.UserIdCause;
import hudson.model.ParametersAction;
import hudson.model.ParameterValue;
import hudson.model.ParametersDefinitionProperty;
......@@ -141,18 +141,19 @@ public class BuildCommand extends CLICommand {
);
}
public static class CLICause extends Cause {
public static class CLICause extends UserIdCause {
private String startedBy;
public CLICause(){
startedBy = "unknown";
startedBy = "unknown";
}
public CLICause(String startedBy){
this.startedBy = startedBy;
}
@Override
public String getShortDescription() {
return "Started by command line by " + startedBy;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册