replace the configure block with copyArtifacts()