We investigate how the intensity and duration of an attosecond pulse generated from high-order harmonic generation are affected by the pressure and thickness of the gas jet by taking into account the macroscopic propagation of both fundamental and harmonic fields. Our simulations show that, limited by the propagation effects, especially the absorption of harmonics, the intensity of an attosecond pulse cannot be improved by just independently increasing the gas pressure or the medium length. On the other hand, due to good phase-matching conditions, the duration of a generated attosecond pulse can be improved by changing the gas pressure.