Three other bodybuilders were given suspended prison sentences
A drug dealing police officer who got his ex-girlfriend to keep tabs on any investigation into him has been jailed for 16 months.
Justin Weaver, 28, who served with the Metropolitan Police, supplied steroids to other bodybuilders around Swansea.
Amanda Griffin, 29, who worked for South Wales Police, was given a 24-week suspended term at Swansea Crown Court
Ambulance worker Alan Dutton was also jailed for 10 months for supplying the class C drugs.
Three other bodybuilders were given suspended prison sentences for supplying steroids.
They were ordered to do unpaid work ranging from 150 to 200 hours.
Weaver, of the Birchgrove area of Swansea, admitted supplying class C drugs, wilful misconduct in public office and attempting to pervert the course of justice.
Griffin, of Swansea, admitted misconduct and attempting to pervert the course of justice.
As well as the suspended prison sentence she was placed under supervision and ordered to carry out 120 hours of unpaid work.
Dutton, who also lived in the Birchgrove area, pleaded guilty.
Jim Davis, prosecuting, told the court that police found £6,500 worth of steroids during a raid on homes and a shop around the city.
The investigation led to a group of bodybuilders, including Weaver, who were supplying each other with drugs obtained by Dutton.
Meanwhile, Griffin was using her job as a call handler at Swansea central police station to access computers to discover whether police were closing in on her former boyfriend.
In addition, said Mr Davis, Weaver, who had points on his licence, was pictured speeding in Griffin's car at 78mph on the Heads of the Valleys road.
He wrote a letter in her name saying she did not know who had been driving.
Judge Peter Heywood said anyone abusing their public duties would receive a sentence that would deter others.
Weaver, who served in the Met in London for six years before being arrested, and Griffin, had already resigned from their jobs, the court heard.