Skip to content

Commit

Permalink
Check disabled flag also on WorkflowJob (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jun 17, 2023
1 parent 62c13fd commit fade96e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/git/GitStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static javax.servlet.http.HttpServletResponse.SC_BAD_REQUEST;
import static javax.servlet.http.HttpServletResponse.SC_OK;
import jenkins.model.Jenkins;
import jenkins.model.ParameterizedJobMixIn;
import jenkins.scm.api.SCMEvent;
import jenkins.triggers.SCMTriggerItem;
import jenkins.util.SystemProperties;
Expand Down Expand Up @@ -425,7 +426,7 @@ public List<ResponseContributor> onNotifyCommit(String origin, URIish uri, Strin
}
if (!branchFound) continue;
urlFound = true;
if (!(project instanceof AbstractProject && ((AbstractProject) project).isDisabled())) {
if (!(project instanceof ParameterizedJobMixIn.ParameterizedJob && ((ParameterizedJobMixIn.ParameterizedJob) project).isDisabled())) {
//JENKINS-30178 Add default parameters defined in the job
if (project instanceof Job) {
Set<String> buildParametersNames = new HashSet<>();
Expand Down

0 comments on commit fade96e

Please sign in to comment.