How to get latest artifacts or files from Jenkins to local machine

610 Views Asked by At

I need to download using Jenkins cli or Jenkins api or any other rest API. I need to download artifact to local machine. How is this possible can any one explain

1

There are 1 best solutions below

0
Virendra Kumar On

if you are looking to download the artifact from a particular job at your local system you can use curl or wget command to download it.

eg. curl -u Jenkins_User:Jenkins_Password https://jenkinsurl/artifactpath/file.zip --output "localfilename.zip"