Skip to content
Permalink
Browse files
[JENKINS-19179] - Allow internal API calls, which disable the project.
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 2a0d3da2936e43fe5542be7772de2b115fff20d8
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/main/java/hudson/matrix/MatrixConfiguration.java
@@ -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

0 comments on commit 2a0d3da

Please sign in to comment.