Skip to content

Commit

Permalink
[JENKINS-14494] use ${it} instead of Stapler.getCurrentRequest().find…
Browse files Browse the repository at this point in the history
…AncestorObject()
  • Loading branch information
ikedam committed Aug 22, 2013
1 parent 22d147c commit 99e2d37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Expand Up @@ -160,10 +160,8 @@ public Descriptor<? extends BuildStep> getDefaultPublisher() {
return Hudson.getInstance().getDescriptorByType(ArtifactArchiver.DescriptorImpl.class);
}

public boolean isMatrixProject() {
// Determine the configuring project from the request url.
AbstractProject<?,?> project = Stapler.getCurrentRequest().findAncestorObject(AbstractProject.class);
return (project instanceof MatrixProject);
public boolean isMatrixProject(Object it) {
return (it instanceof MatrixProject);
}
}

Expand Down
Expand Up @@ -40,7 +40,7 @@
default="${descriptor.defaultBuildStepRunner}"/>
</f:entry>
</f:advanced>
<j:if test="${descriptor.matrixProject}">
<j:if test="${descriptor.isMatrixProject(it)}">
<f:optionalBlock inline="true" field="configuredAggregation" title="${%configureForParent}" checked="${instance.configuredForMatrixParent}">
<f:entry>
<f:dropdownDescriptorSelector title="${%runConditionForParent}" field="aggregationCondition" descriptors="${descriptor.runConditions}"
Expand Down

0 comments on commit 99e2d37

Please sign in to comment.