Added a overload constructor of CopyArtifact to preserve the compatibility with CopyArtifact < 1.29.