Jenkins插件可通过https远程下载文件 [英] Jenkins plugin to download remotely file over https
问题描述
我需要将文件从https(需要身份验证)下载到远程VMware Server虚拟机
I need to download file from https (authentication required) to a remote VMware Server Virtual Machine
Jenkins中是否有插件可以做到这一点?
Is there a plugin in Jenkins to do it?
我需要从该位置下载名称为"suite"的最新更新文件.
I need to download from the location the last updated file that has the name "suite"
我下载了 SCM URL ,但没有找到内部版本步骤来运行它.另外,我不确定这是否是合适的插件
I downloaded SCM URL, but didn't find a build step to run it. Also, I am not sure if it's the right plugin for it
推荐答案
URL SCM插件 不提供构建步骤,因为它使您能够将某个URL作为SCM(每个作业一个SCM ).
The URL SCM plugin does not provide a build step because it gives you the ability to have a certain URL as SCM (one SCM per job).
因此,您需要使用URL作为源代码提供程序来完成一项额外的工作.
So you need an extra job with the URL as Source code provider.
让我惊讶的是,您可能正在寻找 Wget
.只需具有 执行Shell /批处理命令 步骤,它会为您的URL调用Wget并将其保存到当前的%WORKSPACE%
.
It strikes me that Wget
may be what you're looking for. Just have a Execute Shell / Batch Command step that invokes Wget for your URL and saves it to the current %WORKSPACE%
.
(实际上,在另一个问题上, gareth-bowles提出了建议.)请注意,还有一个<一个href ="http://gnuwin32.sourceforge.net/packages/wget.htm" rel ="nofollow noreferrer">用于Windows的wget .
(Actually that's what gareth-bowles suggested over at the other question.) Do note that there is also a wget for windows.
这篇关于Jenkins插件可通过https远程下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!