High-order harmonic generation process in the few- and multiple-optical-cycle regime is theoretically investigated, using the saddle-point method generalized to account for nonadiabatic effects. The influence of the carrier-envelope phase of the driving pulses on the various electron quantum paths is analyzed. We demonstrate that the short and long quantum paths are influenced in different ways by the carrier-envelope phase. In particular, we show that clear phase effects are visible on the long quantum paths even in the multiple-optical-cycle regime, while the short quantum paths are significantly influenced by the carrier-envelope phase only in the few-optical-cycle regime.