Olivia Wilde has joined the cast of Martin Scorsese's HBO pilot which is based on the 1970s disco era.

The 30-year-old actress, who is expecting her first child with partner Jason Sudeikis, has been cast as one of the leads in the untitled project alongside Bobby Cannavale. 

The music business drama is also being executive produced by Boardwalk Empire's Terence Winter and rock 'n' roll legend, Mick Jagger.

The series will centre on the punk and disco music industry in 1970s' New York and will be told through the eyes of a record executive who is trying to revive his label with a new sound.

Wilde tweeted her excitement saying that she "could not be more psyched" to be joining the Scorsese's newest HBO project.

Production is expected to start this summer which will give Wilde a chance to prepare for the role after the birth of her baby, which is due in the coming weeks.