How to download artifacts from remote Jenkins (WGET)

Posted by

WGET is a unix utility for non-interactive download of files from internet.
It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

Example:

wget --auth-no-challenge --http-user=$JENKINS_USERNAME --http-password=$PASWWORD http://remotejenkins.com/job/$JOB_NAME/ws/$FILEPATH_IN_WORKSPACE/$ARTIFACT_NAME

Leave a Reply

Your email address will not be published.