U.S. crude oil ended higher for a second straight session on Thursday, tracking the continued uptick in global stock markets despite the dollar strengthening, and notwithstanding the more than expected increase in the weekly crude stockpiles report from the Energy Information Administration.