Skip to content

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

@rsandell

Description

@rsandell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions