简体   繁体   English

如何在Rest API Build Promotion上重命名工件

[英]How to rename artifact on rest api build promotion

I am relatively new to artifactory trying to achieve the below pointers. 我对尝试实现以下指示的人工知识相对较新。

1.) After QA approval trying to promote Jars from snapshot to release artifact(actual promotion works) but promoting to release artifact is not changing version name. 1.)在质量检查批准之后,尝试将Jars从快照升级为发布工件(实际的升级工作),但是升级为发布工件不会更改版本名称。

whether it is possible to change/rename artifact on rest api build promotion.? 是否有可能在rest api构建升级上更改/重命名工件。

2.) Also please suggest how we can achieve roll-back scenarios here. 2.)另外,请在此处建议我们如何实现回滚方案。

Any inputs are greatly appreciated. 任何输入,不胜感激。

Thanks. 谢谢。

The build promotion REST API does support changing the version name. 构建促进REST API确实支持更改版本名称。
enter link description here You can change the version name using a custom promotion user plugin . 在此处输入链接描述,您可以使用自定义促销用户插件更改版本名称。 You can see some examples of build promotion plugins in the JFrog Dev Github account. 您可以在JFrog Dev Github帐户中看到一些构建升级插件的示例
Specifically, the promotion.groovy plugin contains example of copying staging artifacts to release artifacts. 具体来说, promotion.groovy插件包含复制暂存工件以释放工件的示例。
A good place to start is the user plugins wiki page and the Artifactory public API documentation. 一个不错的起点是用户插件维基页面和Artifactory 公共API文档。

The Artifactory Jenkins plugin supports more advanced release management capabilities, including the option to rollback. Artifactory Jenkins插件支持更高级的发行管理功能,包括回滚选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM