Jenkins Version
CloudBees Jenkins Enterprise 2.346.4.1-rolling
JTE Version
2.5.3
Bug Description
When I programmatically update folder's config.xml with JTE libraries packaged as a plugin, they don't load during job execution.
After that, I open the folder in Web UI and press Apply/Save without changing anything, now library works as expected.
Tried restarting Jenkins controller, it didn't help.
Is there any way to load libraries from plugin programmatically?
Steps to Reproduce
Prerequisite: JTE libraries packaged as a plugin and installed in Jenkins
When I programmatically update folder's config.xml with plugin config libraries, they don't load:
<librarySources>
<org.boozallen.plugins.jte.init.governance.libs.LibrarySource>
<libraryProvider class="org.boozallen.plugins.jte.init.governance.libs.PluginLibraryProvider">
<plugin class="jte.generated.a8a8a19c2afe944718b0dd663d210afc0.LibrarySourcePlugin" plugin="lib@1.0.0" />
<libraries class="linked-hash-map" />
<jarLastModified>0</jarLastModified>
</libraryProvider>
</org.boozallen.plugins.jte.init.governance.libs.LibrarySource>
</librarySources>
Job log:
[JTE] 2: Library git not found.
[JTE] java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
After that, I open the folder in Web UI and press Apply/Save without changing anything, now library works as expected.
Jenkins Version
CloudBees Jenkins Enterprise 2.346.4.1-rolling
JTE Version
2.5.3
Bug Description
When I programmatically update folder's config.xml with JTE libraries packaged as a plugin, they don't load during job execution.
After that, I open the folder in Web UI and press Apply/Save without changing anything, now library works as expected.
Tried restarting Jenkins controller, it didn't help.
Is there any way to load libraries from plugin programmatically?
Steps to Reproduce
Prerequisite: JTE libraries packaged as a plugin and installed in Jenkins
When I programmatically update folder's config.xml with plugin config libraries, they don't load:
Job log:
After that, I open the folder in Web UI and press Apply/Save without changing anything, now library works as expected.