Skip to content

Commit

Permalink
[JENKINS-19179] - Allow internal API calls, which disable the project.
Browse files Browse the repository at this point in the history
This change provides the compatibility with project deletion flows, which disable configurations/projects before the deletion.
All specified values will be replaced by the current status of the parent project.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
  • Loading branch information
oleg-nenashev committed Aug 5, 2014
1 parent fe786b4 commit 2a0d3da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/hudson/matrix/MatrixConfiguration.java
Expand Up @@ -117,10 +117,7 @@ public final boolean isDisabled() {

@Override
public final void makeDisabled(boolean b) throws IOException {
if (/**disable*/ b) {
throw new Error("Matrix configurations cannot be disabled separately. Disable the parent project instead");
}
super.makeDisabled(b);
super.makeDisabled(getParent().isDisabled());
}

@Override
Expand Down

0 comments on commit 2a0d3da

Please sign in to comment.