简体   繁体   中英

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.

whether it is possible to change/rename artifact on rest api build promotion.?

2.) Also please suggest how we can achieve roll-back scenarios here.

Any inputs are greatly appreciated.

Thanks.

The build promotion REST API does support changing the version name.
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.
Specifically, the promotion.groovy plugin contains example of copying staging artifacts to release artifacts.
A good place to start is the user plugins wiki page and the Artifactory public API documentation.

The Artifactory Jenkins plugin supports more advanced release management capabilities, including the option to rollback.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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