Details
-
Bug
-
Status: Resolved (View Workflow)
-
Blocker
-
Resolution: Fixed
-
None
Description
WHen the unique id plugin creates an ID for a new job the id persisted to disk is the empty string.
WHen the unique id plugin creates an ID for a new job the id persisted to disk is the empty string.
Code changed in jenkins
User: James Nord
Path:
src/main/java/org/jenkinsci/plugins/uniqueid/implv2/PersistenceRootIdStore.java
src/test/java/org/jenkinsci/plugins/uniqueid/IdTest.java
http://jenkins-ci.org/commit/unique-id-plugin/f79e4cd342fb830c47adf3d3732e3988ac6c6018
Log:
[FIXED JENKINS-28913] write the id to the correct file.
When sotring the ID write it to the correct file.
Add unit tests to check the uniqueness of the ID to catch regresssions.
Add some code to migrate an empty id. (this will only happen for new
jobs/builds created with 2.0 or 2.0.1 of the plugin.)
Migrations will be ok.