From 55f15519ced232c9d008dbe75d80275ab627018d Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sat, 11 Oct 2014 14:31:09 +0400 Subject: [PATCH] Noting #1374 Signed-off-by: Oleg Nenashev --- changelog.html | 3 +++ core/src/main/java/hudson/model/AbstractProject.java | 1 + 2 files changed, 4 insertions(+) diff --git a/changelog.html b/changelog.html index 0654b5e621..17048e4cf7 100644 --- a/changelog.html +++ b/changelog.html @@ -84,6 +84,9 @@ Upcoming changes
  • Show keep build log reason in tool tips (pull request 1422) +
  • + Do not disable projects, which do not support such operation (like Matrix configurations) + (issue 24340) diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 03ab6646b5..0789a0e216 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -693,6 +693,7 @@ public abstract class AbstractProject

    ,R extends A * The method will ignore the disable command if {@link #supportsMakeDisabled()} * returns false. The enable command will be executed in any case. * @param b true - disable, false - enable + * @since 1.585 Do not disable projects if {@link #supportsMakeDisabled()} returns false */ public void makeDisabled(boolean b) throws IOException { if(disabled==b) return; // noop -- GitLab