In the article I tell about building NAV 2018 solution from Bitbucket repository with desctop TFS. You can find the article here.