Skip to content
Permalink
Browse files
[FIXED JENKINS-8656] If branch spec is an empty string, due to an emp…
…ty parameter, etc, use **.
  • Loading branch information
abayer committed Apr 13, 2011
1 parent a85452d commit dc575dce269020afe79bf0224c906b2520c5438d
Showing 1 changed file with 5 additions and 0 deletions.
@@ -434,6 +434,11 @@ private String getSingleBranch(AbstractBuild<?, ?> build) {
ParametersAction parameters = build.getAction(ParametersAction.class);
if (parameters != null)
branch = parameters.substitute(build, branch);

// Check for empty string - replace with "**" when seen.
if (branch.equals(""))
branch = "**";

return branch;
}

0 comments on commit dc575dc

Please sign in to comment.