SAN FRANCISCO — A former senior trial attorney at the San Francisco city attorney’s office on Friday was awarded more than $2 million by a jury in a whistleblower retaliation case.

Joanne Hoeper, who served as a deputy city attorney for 20 years, filed a retaliation suit against City Attorney Dennis Herrera and the city in 2015. Hoeper alleged she was sidelined and then fired for looking into payments made by the city to replace private sewer systems, which she believed to be part of a kickback scheme.