NEW ORLEANS -- A teen will spend the next 25 years in prison after he admitted to being in a group that opened fire on undercover State Troopers in December 2015.

Officials said Quincy Shaw originally faced 10 to 50 years for each count of attempted second-degree murder, but chose instead to plead guilty just minutes before his trial was to begin Wednesday.

Shaw was part of a group in a stolen truck that three undercover troopers were watching the night of Dec. 11, 2015. After calling for a marked unit to stop the truck, the undercover troopers followed the truck onto Grant Street in New Orleans East. When the truck made a turn on Marque Street, a passenger in the truck opened fire with a .45-caliber handgun.

One bullet hit the troopers' unmarked Chevy Impala bumper, three others hit the windshield. The troopers were injured by shrapnel and shattered glass, and the group took off in the stolen truck. Authorities found the truck two days later, abandoned in the 4600 block of Eastview Street.

Officials said DNA connected Shaw and three others who are still awaiting trial; Robert LeBlanc, 19; Damond Scott, 18; and Anthony Crawford, 20. All three face attempted second-degree murder charges.