diff --git a/src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java b/src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java index d0e64aeb..4182d730 100644 --- a/src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java +++ b/src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java @@ -168,11 +168,9 @@ public String expandToken(String toExpand, final AbstractBuild build, final */ private StatusJob getScmChange(Job subjob,PhaseJobsConfig phaseConfig,AbstractBuild build, BuildListener listener,Launcher launcher) throws IOException, InterruptedException { - /* https://issues.jenkins-ci.org/browse/JENKINS-33821 - if ( subjob.disabled ) { + if ( ! subjob.isBuildable() ) { return StatusJob.IS_DISABLED; } - */ if( phaseConfig.isDisableJob() ) { return StatusJob.IS_DISABLED_AT_PHASECONFIG; }