On 06/17/2013 08:35 AM, vimil saju wrote:
When there are multiple ArtifactManagers, how does Jenkins choose which one should be used for the build (maybe have an ArtifactManager return a priority number and have Jenkins loop though available ArtifactManagers in order of priority and return the first one that returns true for the appliesTo method?)
That is what the PR does now. (See Extension.priority.) This aspect is probably still open; another option is to have administrators explicitly enable artifact manager(s) they wish to use, meaning that simply installing a plugin defining a manager has no effect until you configure Jenkins to use it.
The other question is that since the getArtifactsDir returns a File object (I see that this has been deprecated now), how do we make existing plugins like the copyartifacts plugin work as I think they depend on this method.
They would need to be updated to call ArtifactManager.loadArtifact; until then they would not work with nonstandard managers. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
