We were quite attached to the use of some plugins that are no longer supported in pipelines, and would like to implement their use in the shared libraries of our pipelines. One of the basic elements needed for this is to get a copy of Jenkins, can anyone share this way?
- Are there any restrictions or the correct way to get
Jenkins.getActiveInstance()in the "src" or "vars" folder?
I tried to get Jenkins.getActiveInstance()src code as well as vars code, but it returns null, am I missing something? Any help would be appreciated.
thank
source
share