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

Access Jenkins instance with shared-libraries for pipelines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • None

      We were pretty hooked onto using some plugins which are not supported in pipelines anymore and would like to implement their usage in shared-libraries of our pipelines. One of the main items required for that would be to get hold of Jenkins Instance, can someone share a way to do that ?

      • Are there any restrictions or proper way to get hold of "Jenkins.getActiveInstance()" under "src" or "vars" folder ?

      I have tried to get Jenkins.getActiveInstance() under src code as well vars code but it returns null, am I missing something here? any help will be appreciated.

      thanks

            Unassigned Unassigned
            maqboolzee Zee Maqbool
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: