Skip to content

Commit

Permalink
[FIXED JENKINS-22535] fixed detection of whether we are working with …
Browse files Browse the repository at this point in the history
…the MatrixRun or MatrixBuild build type
  • Loading branch information
mcupak committed Apr 8, 2014
1 parent fbf41cb commit df20f10
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -201,12 +201,12 @@ public void doConfigSubmit(StaplerRequest req, StaplerResponse rsp) throws Servl

BuildType type;

if (req.findAncestor(MatrixBuild.class) != null) {
type = BuildType.MATRIXBUILD;
build = mbuild;
} else if (req.findAncestor(MatrixRun.class) != null) {
if (req.findAncestor(MatrixRun.class) != null) {
type = BuildType.MATRIXRUN;
build = ((MatrixRun) mbuild).getParentBuild();
} else if (req.findAncestor(MatrixBuild.class) != null) {
type = BuildType.MATRIXBUILD;
build = mbuild;
} else {
type = BuildType.UNKNOWN;
}
Expand Down

0 comments on commit df20f10

Please sign in to comment.