A Tel Aviv court on Tuesday sentenced former prime minister Ehud Olmert to six years in prison for accepting bribes linked to a major property development in Jerusalem, Israeli media said.