Placing cap on fire sprinkler pipe