Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54505

Expose plugin manager to groovy

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      I am sorry if this is not the right component.

       

      It is important for a generic groovy script to detect installed plugins so it can operate based on the availability of plugins. I could not find any option to do so, even the binding.hasVariable and getMetaClass are blocked, so detection of symbols in current scope is probably blocked.

       

      It will be nice if this.hasVariable can be enabled to detect steps/methods/variables, or at least have a way to query what plugins are installed, for example getPlugins which return a dictionary of plugin with its version.

       

      I found some references of people require the same, however, I could not see if/where a bug was opened, so I am sorry if this is a duplicate.

       

      Thanks!

            Unassigned Unassigned
            alonbl Alon Bar-Lev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: