For more than seven years, William M. George fought the city over a promotion system that he claimed rewarded Democrats and supporters of Mayor Byron W. Brown.
A federal judge dismissed his suit last week.
George, a seasonal laborer, sued the city in 2009, claiming he was denied a permanent position because he failed to join the Democratic Party and support Brown's re-election campaigns.
The city, in its defense, argued that George was "apolitical and was never pressured to become politically active” and, in fact, did support the mayor on a few occasions.
City officials also claim personnel decisions regarding laborers were made by one of George’s supervisors, not the mayor’s office.
In ending the suit, U.S. District Judge Michael A. Telesca of Rochester approved the city's motion for summary judgment and found no evidence that "any city employee" demanded or required George to join the Democratic Party or support Brown.
George’s lawyer, Dean M. Drew, could not be reached to comment on a possible appeal.