We used to use Map<String,Object> as a data store for Descriptor, but this requires a lot of boiler plate code to move values in/out from this Map, making the code uglier.
I modified this to just use XStream like the rest of the Hudson, so that the information can be persisted by simply storing them in fields.
Existing Descriptors are enhanced so that they can convert formats from pre-1.62 XML format.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1126 71c3de6d-444a-0410-be80-ed276b4c234a
Submitted by: Vladimir Sizikov
Reviewed by: Kohsuke
CVS: ----------------------------------------------------------------------
CVS: Issue number:
CVS: If this change addresses one or more issues,
CVS: then enter the issue number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to the project by someone else; i.e.,
CVS: they sent us a patch or a set of diffs, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1124 71c3de6d-444a-0410-be80-ed276b4c234a
Contrubuted by: Vladimir Sizikov
Reviewed by: Kohsuke
So, a new button, similar to "Keep this log" was added: "Delete this build".
The new button only enabled if the build is not marked with "keep this
log forever" - there is no need to delete a build if the user explicitly
stated that this build must be preserved.
When user click on the "Delete" button, he is redirected to
confirmation page, similar to what is currently available for "Delete
Project".
We once again double-check that it's OK to delete the build, and there
are no other projects that depend on this build and wish it to stay.
If we see that the build should not be deleted, a warning shown to
user.
If it's OK to delete the build and user clicks "Yes" button, we delete
it.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1067 71c3de6d-444a-0410-be80-ed276b4c234a