当前位置:网站首页>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/
边栏推荐
猜你喜欢

Exception handling mechanism topic 1

Breakthrough in core technology of the large humanoid Service Robot Walker x

谁动了我的内存,揭秘 OOM 崩溃下降 90% 的秘密

MySQL之联表查询、常用函数、聚合函数

为什么 4EVERLAND 是 Web 3.0 的最佳云计算平台

【目标检测】YOLOv5跑通VisDrone数据集

Data analysis and privacy security become the key factors for the success or failure of Web3.0. How do enterprises layout?

Who moved my memory and revealed the secret of 90% reduction in oom crash
![[target detection] tph-yolov5: UAV target detection based on Transformer's improved yolov5](/img/be/5348170fb460cbafbdb848d70fea15.png)
[target detection] tph-yolov5: UAV target detection based on Transformer's improved yolov5

【知识图谱】实践篇——基于医疗知识图谱的问答系统实践(Part3):基于规则的问题分类
随机推荐
从数字化到智能运维:有哪些价值,又有哪些挑战?
博云容器云、DevOps平台斩获可信云“技术最佳实践奖”
中国芯片自给率大幅提升,导致外国芯片库存高企而损失惨重,美国芯片可谓捧起石头砸自己的脚...
MyBaits
【读书会第13期】+FFmpeg视频采集功能
基于redis6.2.4的redis cluster部署
文字翻译软件-文字批量翻译转换器免费
数据分析与隐私安全成 Web3.0 成败关键因素,企业如何布局?
ILSSI认证|六西格玛DMAIC的历程
测试框架-unittest-命令行操作、断言方法
Who moved my memory and revealed the secret of 90% reduction in oom crash
在华为昇腾Ascend910上复现swin_transformer
使用Huggingface在矩池云快速加载预训练模型和数据集
链游开发现成版 链游系统开发详细原理 链游源码交付
easyui入门
win10设备管理认不到GTX1080Ti 显示设备的解决办法
气数已尽!运营 23 年,昔日“国内第一大电商网站”黄了。。。
Is it safe to open a securities account in Huatai VIP account
QT ListView 列表显示组件笔记
复旦大学EMBA同学同行专题:始终将消费者的价值放在最重要的位置