Download Artifacts from Jenkins with WGET

If you find that using wget to download an artifact from a secured Jenkins server keeps failing with:

wget --http-user=user --http-password=password https://hostname.server.com/jenkins/job/tool/lastSuccessfulBuild/artifact/tool.zip

HTTP request sent, awaiting response... 403 Forbidden
2013-03-20 16:35:36 ERROR 403: Forbidden.


Since Jenkins is using form based authentication, you will need to use an option:

Try this instead:
wget --auth-no-challenge --http-user=user --http-password=password https://hostname.server.com/jenkins/job/tool/lastSuccessfulBuild/artifact/tool.zip


Comments

Anonymous said…
Thank you for this!
yuva said…
Thank dude

Popular posts from this blog

How to set Etrade default Home Page