当前位置:网站首页>Jenkins' file parameters can be used to upload files
Jenkins' file parameters can be used to upload files
2022-07-25 16:51:00 【Keep a low profile】
When we want to upload files to the server , It is troublesome to write an upload page temporarily . Fortunately Jenkins File parameter controller is provided , It is convenient for us to upload files to the server , And do further treatment . This article details the specific steps .
Parameters
stay Jenkins Of Job In the configuration interface , Create a new one File Parameter

There's a pit here , You have uploaded ,jenkins Change the file name . I found a lot of articles , The problem has been solved .
First of all, the name is misleading :『 File path 』 It has nothing to do with the path of uploading files . The actual meaning is , If you press... In the above figure , stay 『 File path 』 Fill in the testfile , When the file is uploaded , Two things will happen :
File upload to jenkins Of workspace in , And then rename it as test_file
The name of the file before uploading ( Name in the user's file system ), Save in ${test_file} variable
Next , We can go through ${testfile} Variable , Change the uploaded file back to its original name , Or do something else .
Key orders
mv test_file /tmp/$test_file
these two items. test_file Not the same ,
first test_file It's an uploaded file , This cannot be written as a variable , Otherwise it would be wrong ,
the second $test_file Name before file upload That's no problem
Reference link
https://www.lfhacks.com/tech/jenkins-upload-portal/
边栏推荐
- Doget and dopost
- Ilssi certification | the course of Six Sigma DMAIC
- 吴恩达逻辑回归2
- Fastadmin TP installation uses Baidu rich text editor ueeditor
- Differences between cookies, cookies and sessions
- SAP Fiori 的附件处理(Attachment handling)
- What is the shortcut key for win11 Desktop Switching? Win11 fast desktop switching method
- MySQL view
- WPF implements user avatar selector
- [cloud co creation] explore how gaussdb helps ICBC create core financial data
猜你喜欢

【知识图谱】实践篇——基于医疗知识图谱的问答系统实践(Part3):基于规则的问题分类

3D semantic segmentation - scribed supervised lidar semantic segmentation

fastadmin tp 安装使用百度富文本编辑器UEditor

基于SqlSugar的开发框架循序渐进介绍(13)-- 基于ElementPlus的上传组件进行封装,便于项目使用

152. 乘积最大子数组

MySQL linked table query, common functions, aggregate functions

【南京航空航天大学】考研初试复试资料分享

jenkins的文件参数,可以用来上传文件
![[target detection] yolov5 Runtong visdrone data set](/img/a6/118e6bbeb254f9d1afd1406d1b0089.png)
[target detection] yolov5 Runtong visdrone data set

复旦大学EMBA2022毕业季丨毕业不忘初心 荣耀再上征程
随机推荐
气数已尽!运营 23 年,昔日“国内第一大电商网站”黄了。。。
【云驻共创】探秘GaussDB如何助力工商银行打造金融核心数据
Rosen's QT journey 99 QML table control tableview
easyui下拉框,增加以及商品的上架,下架
异常处理机制专题1
3D 语义分割——Scribble-Supervised LiDAR Semantic Segmentation
easyui入门
Rainbow plug-in extension: monitor MySQL based on MySQL exporter
slf4j 搭配 log4j2 处理日志
win10设备管理认不到GTX1080Ti 显示设备的解决办法
【目标检测】TPH-YOLOv5:基于transformer的改进yolov5的无人机目标检测
从数字化到智能运维:有哪些价值,又有哪些挑战?
Automatic reply of wechat official account development message
复旦大学EMBA同学同行专题:始终将消费者的价值放在最重要的位置
7. Dependency injection
HCIP笔记十一天
【目标检测】YOLOv5跑通VOC2007数据集(修复版)
百度富文本编辑器UEditor 图片宽度100%自适应,手机端
C # introductory basic tutorial
Communication between processes (pipeline details)