Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to download protected resources in a jenkins workflow?

Many times I have the need to download files (e.g. archives) from a remote repository (e.g. maven-repo) which is protected by username/password.

Its easy to get such a file with curl or wget, but when I don't like to see the password on the logs, maybe there is a better/embedded way to do this from within a jenkins workflow? And how do I combine it with credentials managed by jenkins credential plugin?

like image 579
domi Avatar asked Jan 21 '26 06:01

domi


1 Answers

Use the Credentials Binding plugin, which integrates with Workflow.

like image 55
Jesse Glick Avatar answered Jan 23 '26 19:01

Jesse Glick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!