Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-27716] - Disable archived promotion jobs
Since 1.585, the promotion must explicitly indicate that it can be disabled.
Otherwise, promotions which trigger automatically upon build completion will
execute, even if they're archived.

See hudson.model.AbstractProject#makeDisabled(boolean) for additional details.
  • Loading branch information
Benjamin Heiskell committed Nov 11, 2015
1 parent 524772c commit 2a33fc6
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -153,6 +153,15 @@ public AbstractProject<?,?> getOwner() {
return getOwner().getACL();
}

/**
* JENKINS-27716: Since 1.585, the promotion must explicitly indicate that
* it can be disabled. Otherwise, promotions which trigger automatically
* upon build completion will execute, even if they're archived.
*/
@Override public boolean supportsMakeDisabled() {
return true;
}

/**
* Get the promotion condition by referencing it fully qualified class name
*/
Expand Down

0 comments on commit 2a33fc6

Please sign in to comment.