[英]How to rename existing folder while uploading generic artifacts to JFrog Artifactory in jenkins pipeline
I am using jenkins pipeline. 我正在使用詹金斯管道。 The folder which needs to be uploaded to Artifactory is generated in the *.tar.gz format. 需要上传到Artifactory的文件夹以* .tar.gz格式生成。 Everytime after Jenkins build, the folder name remains same, no change in folder name. 每次Jenkins构建之后,文件夹名称都会保持不变,文件夹名称不会更改。 For generic Artifactory integration I don't want to override the previously uploaded *tar.gz. 对于一般的Artifactory集成,我不想覆盖以前上传的* tar.gz。 Want to know if tar.gz can uploaded in the incremented order based number/date/time. 想知道tar.gz是否可以按递增的编号/日期/时间上传。
Basically you can change the path where you are generating your artifacts (*.tar.gz), lets say give the path as below:- 基本上,您可以更改生成工件的路径(* .tar.gz),可以说如下所示:-
$BRANCH_NAME/$BUILD_ID/*.tar.gz
It will upload the artifacts with the same name, but will be separated using $BRANCH_NAME/$BUILD_ID. 它将上传具有相同名称的工件,但将使用$ BRANCH_NAME / $ BUILD_ID进行分隔。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.