如何在詹金斯工作流程中下载受保护的资源? [英] how to download protected resources in a jenkins workflow?

查看:64
本文介绍了如何在詹金斯工作流程中下载受保护的资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多时候,我需要从受用户名/密码保护的远程存储库(例如maven-repo)中下载文件(例如归档文件).

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.

使用curlwget可以很容易地获得这样的文件,但是当我不希望在日志中看到密码时,也许可以在jenkins工作流中找到更好的/嵌入式方法?以及如何将其与jenkins凭证插件管理的凭证结合起来?

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?

推荐答案

使用

Use the Credentials Binding plugin, which integrates with Workflow.

这篇关于如何在詹金斯工作流程中下载受保护的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆