Dale Earnhardt Jr. will retire from full-time racing after 2017.