当前位置:网站首页>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/
边栏推荐
- easyui入门
- WPF 实现用户头像选择器
- 152. Product maximum subarray
- Homepage portal classification query
- win10自带的框选截图快捷键
- unity 最好用热更方案卧龙 wolong
- 基于redis6.2.4的redis cluster部署
- 3D 语义分割——Scribble-Supervised LiDAR Semantic Segmentation
- Step by step introduction of sqlsugar based development framework (13) -- package the upload component based on elementplus, which is convenient for the project
- Is it safe to open a securities account in Huatai VIP account
猜你喜欢
随机推荐
Test framework unittest skip test
Ilssi certification | the course of Six Sigma DMAIC
博云容器云、DevOps平台斩获可信云“技术最佳实践奖”
测试框架-unittest-测试套件、结果输出到文件
linux内核源码分析之页表缓存
【目标检测】YOLOv5跑通VOC2007数据集(修复版)
Two methods of importing sqllite table from MySQL
Communication between processes (pipeline details)
一百个用户眼中,就有一百个QQ
MySQL之联表查询、常用函数、聚合函数
什么是链游系统开发?链游系统开发如何制作
What is chain game system development? How to make chain game system development
【redis】redis安装
3D semantic segmentation - PVD
使用Huggingface在矩池云快速加载预训练模型和数据集
[redis] redis installation
easyui入门
IAAs infrastructure cloud cloud network
搜狗批量推送软件-搜狗批量推送工具【2022最新】
【读书会第13期】+FFmpeg视频采集功能








