Hello everyone.

I've been working on an issue recently. While trying to call the
*disable-job* CLI method, we receive:

*ERROR: object is not an instance of declaring class*

The root cause is because a plugin has overridden the method:
https://github.com/jenkinsci/multi-branch-project-plugin/blob/master/src/main/java/com/github/mjdetullio/jenkins/plugins/multibranch/TemplateDrivenMultiBranchProject.java#L480

So now, if you try to disable a Freestyle job, it fails because it's
expecting a *TemplateDrivenMultiBranchProject* one.

I open this to have feedback about what is best to do here:

   - Avoid overriding CLI methods
   - Warn about that fact on Jenkins console
   - Warn about that fact on Jenkins CLI commands list page
   - Warn about that fact on the CLI command output directly (may break
   some automations)
   - Others


I filed a ticket, not sure what works better:
https://issues.jenkins-ci.org/browse/JENKINS-61893

Thank you, best regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAHHyvkOhbYpGUNmY-SB8eVT7oyUOQKS5yRPPJa5t2JzrFF4ztA%40mail.gmail.com.

Reply via email to