Skip to content
Commit 8dfa5e19 authored by dty's avatar dty
Browse files

[FIX JENKINS-10330] Update project names in fingerprints when projects are renamed.

- Added a RenameListener to Fingerprint. When the listener is invoked for
  renamed projects, it will iterate over all the builds of the project looking
  for fingerprint actions. If the build was the originator of the fingerprint,
  the buildPtr is updated; (had to make the name non-final to allow for this).
  If the build is the consumer of a fingerprint, the usages are updated.

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

- Expose the fingerprint data inline with the build data in the remote API.
  The renaming code also uses this method as a convenient way to get the
  fingerprints for a build.

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

- Test.

   test/src/test/java/hudson/tasks/FingerprinterTest.java
parent 532ab944
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