New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unclassified:rebuilddescriptor accesses the incorrect class for configuring the Rebuild plugin. #650
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
All the code in https://github.com/jenkinsci/rebuild-plugin/blob/master/src/main/java/com/sonyericsson/rebuild/RebuildConfiguration.java could and should be moved to https://github.com/jenkinsci/rebuild-plugin/blob/master/src/main/java/com/sonyericsson/rebuild/RebuildDescriptor.java a class that extends GlobalConfiguration is already describable. How is an action allowed to have a |
The issue is that Rebuild's "Descriptor" ie. global configuration is not JCasC compliant: Please follow the very well documented best practice here: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/PLUGINS.md#descriptors-global-configuration |
Consider following this workflow to report JCasC compliance issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Abstract
Currently, the unclassified descriptor supports configuration for the rebuild plugin, but is accessing the incorrect class for configuring the plugin. it accesses a defaulted constructor for the plugin, vs the configurable class found here
Followup
I am pretty new to this codebase, but if someone has a suggestion as to how to contribute towards a fix for this, please let me know and point me in the right direction and I will get a PR open.
Thank you
Jenkins version: jenkins/jenkins:lts-slim Docker image
Plugin version: rebuild:latest
OS: MacOS 10.12.6
The text was updated successfully, but these errors were encountered: