change the call to copyArtifacts