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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -