how to download protected resources in a jenkins workflow?

旧城冷巷雨未停 提交于 2019-12-10 18:08:26

问题


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?


回答1:


Use the Credentials Binding plugin, which integrates with Workflow.



来源:https://stackoverflow.com/questions/29746313/how-to-download-protected-resources-in-a-jenkins-workflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!