-
Bug
-
Resolution: Fixed
-
Major
-
None
The fingerprint record contains the names of projects. However, if the project is renamed, the link to the usage or originator is lost. Furthermore, if another project is created with that name, then the fingerprint points to the new project.
Fingerprint records should be updated when projects are renamed.
Code changed in jenkins
User: dty
Path:
changelog.html
core/src/main/java/hudson/model/AbstractBuild.java
core/src/main/java/hudson/model/Fingerprint.java
test/src/test/java/hudson/tasks/FingerprinterTest.java
http://jenkins-ci.org/commit/jenkins/8dfa5e19ea94195e9737f99457297623d4180c7f
Log:
[FIX JENKINS-10330] Update project names in fingerprints when projects are renamed.
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
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/src/test/java/hudson/tasks/FingerprinterTest.java