使用网络表单上传创建哈德森/詹金斯工作 [英] Create a hudson/jenkins job with a web-form upload

查看:102
本文介绍了使用网络表单上传创建哈德森/詹金斯工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个工作,在该工作中需要进行网络上传(即带有文件的帖子).有没有办法做到这一点? (我尝试过搜索网络).请注意,所涉及的文件可能非常大.

I have a requirement to create a job where a web upload (IE a post with a file) is going to be required. Is there a way to do this? (I've tried searching the web). Note that the files in question could be very large.

工作流程(为清楚起见): 用户可以在作业菜单中单击构建,用户可以设置参数并进行上传,用户单击提交,然后以该文件为源构建作业.

Workflow (for clarity): User clicks build in job menu, user can set parameters and make an upload, user clicks submit and job is built with that file as a source.

其他用例: 通过POST操作远程启动该作业,以上传文件并设置参数.

Other use case: The job is started remotely with a POST operation to upload the file and set the parameters.

推荐答案

您可以创建

You can create a Parameterized Build in which there is a File parameter for the user to upload their file.

File参数允许构建以 接受文件,由 用户在计划新版本时.这 文件将放置在 之后在已知位置的工作空间 签出/更新完成,因此 您的构建脚本可以使用此文件.

File parameter allows a build to accept a file, to be submitted by the user when scheduling a new build. The file will be placed inside the workspace at the known location after the check-out/update is done, so that your build scripts can use this file.

这篇关于使用网络表单上传创建哈德森/詹金斯工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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