file - How to copy artifacts present in artifactory to specific repository? -
i trying copy artifacts present in artifactory repository , used powershell code source artifactory path , destination repo path, i'm facing downloadfile error "2" arguments issue.
$source = "artifactory/test/sample.zip"; $dest= "repo/infra/test/admin.zip"; $usr="---" $pwd="----" $webclient=new-object system.net.webclient $webclient.credentials=new-object system.net.networkcredentials($usr,$pwd) $webclient.downloadfile($src,$dest)
error after running above code
exception calling "downloadfile" 2 arguments " exception occurred during webclient request"
please specify how resolve issue
Comments
Post a Comment