Skip to content
Permalink
Browse files
[FIXED JENKINS-10423] don't run promotionProcess that are disabled
  • Loading branch information
ndeloof committed Oct 14, 2011
1 parent 314089c commit b0c0504e3d76b59389e72e6925ae15b5f93e8c70
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
@@ -248,6 +248,8 @@ public Status isMet(AbstractBuild<?,?> build) {
* true if the build was promoted.
*/
public boolean considerPromotion(AbstractBuild<?,?> build) throws IOException {
if (isDisabled()) return false;

PromotedBuildAction a = build.getAction(PromotedBuildAction.class);

// if it's already promoted, no need to do anything.

0 comments on commit b0c0504

Please sign in to comment.