Skip to content
Commit 9ab5f567 authored by dty's avatar dty
Browse files

Allow jobs associated only through fingerprinted files to appear in the

dependency graph. This functionality is enabled through a feature flag,
hudson.tasks.Fingerprinter.enableFingerprintsInDependencyGraph, which is off
by default.

- Rebuild the dependency graph as part of each fingerprint action.
  Fingerprinter.buildDependencyGraph adds information to the dependency graph
  for projects found in fingerprint records. Since the dependency graph is
  based on project, once a relationship is established between two projects,
  we can skip scanning subsequent builds of the projects. Entries in the
  graph added by the fingerprinter action will never automatically trigger
  downstream builds.

   core/src/main/java/hudson/tasks/Fingerprinter.java

- When reporting dependency changes, don't consider builds that no longer
  exist. This handles issues when projects are renamed, and new projects are
  created using the same name, causing the change to point to incorrect
  builds.

   core/src/main/java/hudson/model/AbstractBuild.java

- Tests.

   test/src/test/java/hudson/tasks/FingerprinterTest.java
parent 211231d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment