The system of organs and ducts through which bile is made and transported from the liver to the small intestine. This includes the gallbladder and the bile ducts.