Julie Bishop will recontest the next federal election.