简体   繁体   English

在jenkins管道中将通用工件上传到JFrog Artifactory时,如何重命名现有文件夹

[英]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.

相关问题 如何为上传到 Jfrog Artifactory 的每个工件触发 Jenkins 管道构建 - How to trigger a Jenkins pipeline build for every artifact uploaded to Jfrog Artifactory Jenkins 管道在从工件下载工件时突然开始失败 - Jenkins pipeline suddenly started failing while downloading artifacts from artifactory JFrog Artifactory的Jenkins管道无法发布BuildInfo - Jenkins pipeline for JFrog Artifactory fails to publish BuildInfo 如何使用jenkins发布构建动作将工件从工件组部署到jfrog工件 - How to deploy an artifact from group of artifacts to jfrog artifactory using jenkins post build action 如何通过Jenkins Build Offline将工件部署到Maven存储库(JFrog工件)? - How to deploy artifacts to Maven Repository (JFrog artifactory) through Jenkins Build Offline? 如何使用Jenkins中的URL触发器插件返回添加到Jfrog工件中的新工件的确切名称 - How to return the exact names of the new artifacts added to Jfrog artifactory using URL Trigger plugin in Jenkins 如何在Jenkins中使用filespec动态创建文件夹并在Jfrog人工制品中上传人工制品? - How to create folders dynamically and upload artifacts in Jfrog artifactory using filespecs in Jenkins? 使用声明式管道将项目 Jar 作为 maven 工件发布到 Jfrog Artifactory - Publish project Jar as maven artifacts to Jfrog Artifactory using Declarative Pipeline 使用jenkins管道将所有工件部署到Artifactory - Deploy all artifacts to Artifactory with jenkins pipeline Jenkins Pipeline Artifactory Promotion,用于多个存储库中的工件 - Jenkins Pipeline Artifactory Promotion for artifacts in multiple repositories
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM