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

Audit Trail plugin support #868

Closed
1 of 6 tasks
qisylvia opened this issue Apr 29, 2019 · 4 comments
Closed
1 of 6 tasks

Audit Trail plugin support #868

qisylvia opened this issue Apr 29, 2019 · 4 comments

Comments

@qisylvia
Copy link

qisylvia commented Apr 29, 2019

Your checklist for this issue

🚨 Please review the guidelines for contributing to this repository.
💡 To better understand plugin compatibility issues, you can read more here

Description

I am trying to use the configuration-as-code plugin to configure Audit Trail plugin:
https://github.com/jenkinsci/audit-trail-plugin

Jenkins version: 2.175
Configuration-as-code plugin version: 1.13
Audit Trail plugin version: 2.4

My audit-trail.yaml file looks like this:

unclassified:
  auditTrail:
    loggers:
      consoleAuditLogger:
        output: "STD_OUT"
        logPrefix: "AUDIT"

When I applied the yaml file using the configuration as code plugin, I get the following error:

Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Unclassified : auditTrail.
Available attributes : administrativeMonitorsConfiguration, artifactManager, buildStepOperation, casCGlobalConfig, cloud, defaultView, extendedEmailPublisher, gitHubConfiguration, gitHubPluginConfig, gitSCM, globalDefaultFlowDurabilityLevel, globalLibraries, location, lockableResourcesManager, mailer, masterBuild, myView, nodeProperties, pipeline-model, plugin, pollSCM, projectNamingStrategy, quietPeriod, scmRetryCount, shell, subversionSCM, timestamperConfig, usageStatistics, viewsTabBar

It might be an usage issue. I read a lot of documentation, but it is not clear what the name should be following "unclassified", for the Audit Trail plugin. I have tried a number of names, such as audit-trail, auditTrailPlugin, etc.

Based on my reading, most plugins are supported if they followed a specific design pattern. It would be nice if this is documented, or some documentation to help users decide what names should be used for their plugins. Thanks.

@timja
Copy link
Member

timja commented Apr 29, 2019

@qisylvia in general if you configure the plugin in the UI, then go to /configuration-as-code and click view configuration, if it doesn't show up there then the plugin isn't supported and needs a fix

Its documented here:
https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/PLUGINS.md
and here:
https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/REQUIREMENTS.md

have you raised an issue on jira for them with the jcasc-compatibility label?

@jetersen
Copy link
Member

Please follow the checklist and do what it asks of you.

@jetersen
Copy link
Member

jetersen commented Apr 29, 2019

Based on my reading, most plugins are supported if they followed a specific design pattern. It would be nice if this is documented, or some documentation to help users decide what names should be used for their plugins. Thanks.

If you open http://YOUR_JENKINS_URL/configuration-as-code and click documentation you get a view of what attributes are configurable on your instance.

@qisylvia
Copy link
Author

@tim, @Casz
Thank you very much for your quick responses. Much appreciated.

Prior to opening the issue, I did try both things you suggested:

  1. Open http://YOUR_JENKINS_URL/configuration-as-code and click documentation
  2. Go to /configuration-as-code and click view configuration

The audit trail plugin did not show up. Perhaps in my readings I missed the fact that if the plugin does not show up, then it is not supported. Thanks for confirming.

I opened a Jira with Jenkins to have the plugin updated to support JCasC.

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

No branches or pull requests

3 participants