Skip to content
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

BaseConfigurator warns about #owner field that should be ignored #2532

Open
rsandell opened this issue Jul 17, 2024 · 1 comment
Open

BaseConfigurator warns about #owner field that should be ignored #2532

rsandell opened this issue Jul 17, 2024 · 1 comment

Comments

@rsandell
Copy link
Member

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Anything

Reproduction steps

See unit test: jenkinsci/pipeline-groovy-lib-plugin#133

Expected Results

jenkins.plugins.git.GitSCMSource#owner should be ignored and never warned about.

Actual Results

The following warning is seen in the system log

WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class jenkins.plugins.git.GitSCMSource#owner: type is abstract but not Describable.

Anything else?

jenkins.plugins.git.GitSCMSource#owner is a transient field inherited from SCMSource that is not intended to be configured by a user. The value is set by the owner object when the scm source is added to it. So JCasC should ignore the field yet it is warning about it in the system log confusing many users.
This warning in fact seems to be logged for any type of scm source, not just git.

@rsandell rsandell added the bug label Jul 17, 2024
@timja timja removed the bug label Oct 3, 2024
@SunMar
Copy link

SunMar commented Nov 20, 2024

Ran into this today too. Seems a duplicate of #1637, and if you search for GitSCMSource#owner you'll find a few more (unrelated) tickets where this warning also pops up in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants