I'm not using pipeline jobs, but the "normal" configuration. There I can tell Jenkins, what to fingerprint (paths and wildcards)
You need to be (very) careful what you fingerprint. If I understood that correctly, the algorithm used is - fingerprint whatever the user asks CI t fingerprint (MD5 checksum) - Search through all fingerprints recorded for the up/downstream related jobs - Note a link between all combinations, where any fingerprint matches We once shot ourself in the foot, by having a "much helps much" approach and fingerprinted about every artifact - creating totally misleading links between runs. Martin Am Mittwoch, 22. April 2020 17:38:06 UTC+2 schrieb Marco Sacchetto: > > Hi, I'm trying to create a new set of pipeline builds for a number of > modules. > The modules are built with gradle and have dependencies between themselves. > I'd like to leverage the fingerprinting feature in Jenkins to obtain > upstream and > downstream relationship created automatically, but I'm not clear about how > it > woud exactly work. My issue is with the fingerprint function not > indicating to > Jenkins if an artifact is an actual dependency or a product the build. > > For example, in a simple case: > > Build 1 builds artifact A using two external dependencies X and Y. > So, build 1 fingerprints A, X and Y. > > Build 2 builds artifact B using A, and it transitively dependends on X and > Y. > I understand that by fingerprinting A, B, X and Y Jenkins will set this as > a downstream > build of build 1. > > Build 3 builds an artifact C totally unrelated to builds 1 and 2, but it > still depends > on X and Y. But, since X and Y have been fingerprinted in builds 1 and 2, > won't > Jenkins record this as a downstream job of both build 1 and 2? Or am I > missing > something here? I expected there would be a way to tell to Jenkins that > artifacts X and Y have not been created by build 1 and 2, but the > fingerprint > function doesn't seem to be accepting any option. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7dcbea10-ad71-4f7f-8e81-c0a6b2471a2d%40googlegroups.com.
