Use resolutionStrategy closure to call Jenkins for dependencies rebuild

Hello

I’m trying to use resolutionStrategy closure in a plugin to rebuild some dependencies, but I’m not sure if I can do that. So, if a dependency details matches my requirements I make a call to Jenkins and rebuild it to ensure the project is always automatically depending on the latest code for this dependency. This will only be done with SNAPSHOT dependencies.

I’m trying to write the jenkins call code inside the resolutionStrategy closure, but it seems to do nothing.