How can we prevent deletion of specific stream snaphots while allowing deletion of other snapshots?
2 answers
Comments
Hi Josh, thanks for the feedback but the info link is for version 3 and we are on 4.0.0.1 and the info now states that a deleted snapshot is deleted from the repository - see http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp?topic=%2Fcom.ibm.team.concert.dotnet.doc%2Ftopics%2Ft_promote_delete_snapshot.html
Hi Martin, I didn't check the 4.x infocenter, looks like they changed that between releases.
Nice info @jcrawford.
I am not an expert on this topic, but found this post interesting, as there are many people asking for ways to delete the unwanted contents from the repository.
One of the friends in sales just asked me if there is any alternative to this in 3.0.1.x, so I just dug a bit, seeking what other related changes went with this change in feature, and found that it was actually a documentation defect in 3.0, which has been fixed in 3.0.1.
Corrected info in 3.0.1:
http://pic.dhe.ibm.com/infocenter/clmhelp/v3r0m1/index.jsp?topic=%2Fcom.ibm.team.concert.dotnet.doc%2Ftopics%2Ft_promote_delete_snapshot.html
Documentation defect:
3.0.1 Documentation (correction, update) "Promoting or deleting snapshots" (156851)
Assuming the permissions work as they are described in the Project's Process Configuration you would have have either a manual build step in your release process (or automated in the build steps using the SCM CLI 'snapshot promote' command) where you switch the Owner of the snapshot to the stream, and you only allow certain roles to create/delete snapshots that belong to the stream.
Do not promote/change-Owner of the snapshot to the stream for simple snapshots, such as the ones for your continuous integration builds, and keep them allocated to the workspace that does the continuous integration build. That should allow users, if you've allowed them in Process Configuration, to delete them.
The real fix to this (in my opinion) rests on the RTC team adding a lock to a snapshot to prevent it from being deleted no matter where it lives, which it looks like they have backlog'ed: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=74775