Skip to content

Commit

Permalink
Merge pull request #522 from RiotGames/JENKINS-14393
Browse files Browse the repository at this point in the history
Fix for JENKINS-14393: Expose more information about who triggered a build via jenkins-cli.jar
  • Loading branch information
vjuranek committed Jul 19, 2012
2 parents e156223 + d1f7f51 commit 4f0bd42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/main/java/hudson/cli/BuildCommand.java
Expand Up @@ -25,7 +25,7 @@

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;
Expand Down Expand Up @@ -141,18 +141,19 @@ protected void printUsageSummary(PrintStream stderr) {
);
}

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;
}
Expand Down

0 comments on commit 4f0bd42

Please sign in to comment.