[JIRA] (JENKINS-58965) Unable to disable a job from UI

6 views
Skip to first unread message

pjanouse@redhat.com (JIRA)

unread,
Aug 16, 2019, 7:21:02 AM8/16/19
to jenkinsc...@googlegroups.com
Pavel Janoušek created an issue
 
Jenkins / Bug JENKINS-58965
Unable to disable a job from UI
Issue Type: Bug Bug
Assignee: Pavel Janoušek
Components: workflow-multibranch-plugin
Created: 2019-08-16 11:20
Priority: Major Major
Reporter: Pavel Janoušek

TL;DR;: Workflow Multibranch job can't be disabled from UI however call via script console works as expected.

Workflow Multibranch plugin view is derived from ComputedFolder implemented by Folder plugin which supports this behavior (ComputedFolder contrary to AbstractFolder uses as a default ON) . Everything is already prepared/implemented, the issue is only the fact, Jelly can't call a method with protected scope - exception is probably occurred, so any test utilizes a call supportMakeDisabled() for this is recognized as 'false'/'otherwise' and the result is it doesn't work as expected.

I've heart some rumor there is an objection against this feature, but I can't find any relevant source.

What I'm trying to solve is the real customer use-case - the Jenkins deployment is orchestrated by JCasC but for develop/ci/debug purposes we want to disable all jobs loaded by a SEED job due to resources utilization etc. We don't want to automatically execute any job (triggered by any internal/external trigger or event) in development environment. Any type of job like Matrix, FreeStyle, Workflow etc. has this feature/behavior and it is exposed to UI as expected. I don't see any reason to not have the same behavior for a Multibranch kind of job. I don't speak about disabling particular branch, I speak only about disabling the whole job itself.

I see this as easy fix for the plugin. If there is an undiscovered dependency/side-efect, lets talk about it here.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pjanouse@redhat.com (JIRA)

unread,
Aug 16, 2019, 7:21:02 AM8/16/19
to jenkinsc...@googlegroups.com
Pavel Janoušek started work on Bug JENKINS-58965
 
Change By: Pavel Janoušek
Status: Open In Progress

pjanouse@redhat.com (JIRA)

unread,
Aug 16, 2019, 7:26:02 AM8/16/19
to jenkinsc...@googlegroups.com

pjanouse@redhat.com (JIRA)

unread,
Aug 16, 2019, 7:29:02 AM8/16/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages