Prohibit deletion of important snapshots or find a way to recover deleted snapshots.
We identified three alternative ways of how to restrict the ability to delete snapshots
1. Restriction via elaborate permission settings in PA/TAs
2. Restriction via a script which checks a certain patterns in the names of the snapshots. E.g. name contains the word "release"...
3. Restriction via a script which checks the linkage between a snapshot and a release WI.
Unfortunately none of those methods are sufficient for us.
A. But now the global configuration comes in. I would like to know whether it is possible to somehow use this to prevent the users from deleting important snapshots?
B. The other thing: there is a article , which is saying: " Deleting a snapshot only disassociates the snapshot from the currently associated stream or workspace. The deleted snapshots are preserved in the repository." That means there should be a way to find this deleted snapshot and associate it to a stream again? Please let me know how to find the deleted snapshot.
1. Restriction via elaborate permission settings in PA/TAs
2. Restriction via a script which checks a certain patterns in the names of the snapshots. E.g. name contains the word "release"...
3. Restriction via a script which checks the linkage between a snapshot and a release WI.
Unfortunately none of those methods are sufficient for us.
A. But now the global configuration comes in. I would like to know whether it is possible to somehow use this to prevent the users from deleting important snapshots?
B. The other thing: there is a article , which is saying: " Deleting a snapshot only disassociates the snapshot from the currently associated stream or workspace. The deleted snapshots are preserved in the repository." That means there should be a way to find this deleted snapshot and associate it to a stream again? Please let me know how to find the deleted snapshot.
2 answers
You can restrict deleting snapshots in the permissions. You could allow users to change the snapshot owner to a "garbage stream" and users with special permission delete the snapshots.
In the Eclipse Client there is a capability to search for snapshots and other SCM content. Go to Search>Jazz Source control to use it. There are several parameters such as creator, name etc, you could use.
In the Eclipse Client there is a capability to search for snapshots and other SCM content. Go to Search>Jazz Source control to use it. There are several parameters such as creator, name etc, you could use.