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

No configurator found for type class com.google.jenkins.plugins.credentials.oauth.GoogleRobotMetadataCredentialsModule #93

Open
acute-github opened this issue Aug 21, 2020 · 3 comments

Comments

@acute-github
Copy link

Any chance of fixing this issue when using this plugin with JCasC?

 - googleRobotMetadata:
          module: |-
            FAILED TO EXPORT
            com.google.jenkins.plugins.credentials.oauth.GoogleRobotMetadataCredentials#module: No configurator found for type class com.google.jenkins.plugins.credentials.oauth.GoogleRobotMetadataCredentialsModule
@rbjorklin
Copy link

rbjorklin commented Sep 15, 2020

The was first reported here: jenkinsci/configuration-as-code-plugin#924 over a year ago.
One of the JCasC developers dropped a reference to this: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/COMPATIBILITY.md

EDIT: For anyone else who finds their way here just FYI secretJsonKey must be base64 encoded as per: json-service-account-config.yml

@frozenfoxx
Copy link

As a further follow-up, the secretJsonKey IS encoded, but it is wrong. You must separately base64 encode the file yourself, then replace the exported secretJsonKey value with it instead. This functions great.

@nkakouros
Copy link

The original issue here I think is that you should not specify the module key in your JCasC yaml. The below example works fine:

credentials:
  system:
    domainCredentials:
      - credentials:
          - googleRobotMetadata:
              projectId: "my-gcp-project"

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

4 participants