Locking the shared stream

Before you build components in the integration stream or feature-specific development stream, lock the stream to prevent developers from delivering work. This ensures that you are dealing with a static set of files.
Note: It is possible that a developer could be in the process of completing a deliver operation when you lock the stream. This scenario could result in some files associated with an activity not being checked in, which, in turn, could break your build operations and produce bad baselines. You may want to create a script that checks for deliveries in progress, and run the script before you lock the stream.