如何进行Jenkins构建步骤来下载URL? [英] How to have a Jenkins build step that downloads a URL?

查看:175
本文介绍了如何进行Jenkins构建步骤来下载URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个Jenkins构建步骤,该步骤只是将给定的URL下载到工作区中.有没有简单的方法可以做到这一点?

(我目前使用一个Ant脚本,该脚本执行简单的 <get/> .但这意味着我需要将该脚本放在SVN中的某个地方,并在构建过程中进行检查.我觉得那很麻烦.)

更新:为了明确起见,我想下载一个URL,而无需在构建系统上安装其他软件或使用其他脚本. (当然,可以使用Jenkins插件.)最好不要依赖于Linux,Windows或其他任何版本的构建从站.

解决方案

您是否看过插件. /p>

I'd like to have a Jenkins build step which just downloads a given URL into the workspace. Is there a simple way to do that?

(I currently use an Ant script which does a simple <get/>. But that means I need to have that script in SVN somewhere, and check it out during the build. I find that cumbersome.)

Update: To clarify, I'd like to download a URL without installing additional software on the build system or using an additional script. (A Jenkins plugin is fine, of course.) Preferably I don't want to depend on the build slave being Linux, Windows, or whatever.

解决方案

Have you looked at the URL SCM plugin? It seems like it has the functionality you are looking for. There are also other URL-based plugins available for Jenkins that you can explore.

这篇关于如何进行Jenkins构建步骤来下载URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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