简体   繁体   English

Gradle + Jenkins + Artifactory Pro:发布阶段和升级

[英]Gradle + Jenkins + Artifactory Pro: Release staging and promotion

I am new to setting up CI/CD process. 我是刚开始设置CI / CD流程。 Here is what I am trying to do 这是我想做的

Setup: 设定:

  1. I have a spring-boot application using gradle. 我有一个使用gradle的spring-boot应用程序。
  2. I have set up a scripted jenkins pipeline to build and upload the rpm as SNAPSHOT version to Artifactory, using the following tutorial ( https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins ) 我使用以下教程( https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in建立了一个脚本化的jenkins管道,以将SNAPSHOT版本的rpm构建并上传到Artifactory。 +詹金斯
  3. I have enabled the Artifactory addInteractivePromotion in my jenkins pipeline script. 我在jenkins管道脚本中启用了Artifactory addInteractivePromotion。

Everything is good till this point, I am able to upload the artifacts to Artifactory under SNAPSHOT (snapshot-local) repo. 到目前为止,一切都很好,我可以在SNAPSHOT(快照本地)存储库下将工件上传到Artifactory。

Problem: 问题:

The problem starts when I use the interactive promotion on Jenkins, when I promote the artifact (project-1.0.1-SNAPSHOT.rpm), artifactory copies the SNAPSHOT version to release repo (release-local) without changing the version (project-1.0.1-SNAPSHOT.rpm). 当我在Jenkins上使用交互式升级时,问题开始,当我升级工件(project-1.0.1-SNAPSHOT.rpm)时,工件将SNAPSHOT版本复制到版本库(版本1.0)而不更改版本库(project-1.0) .1-SNAPSHOT.rpm)。 I want to release this SNAPSHOT version (project-1.0.1-SNAPSHOT.rpm) to release repo with a version changes (project-1.0.1.rpm). 我想发布此SNAPSHOT版本(project-1.0.1-SNAPSHOT.rpm),以发布具有版本更改(project-1.0.1.rpm)的仓库。 .rpm -> release-local .rpm->版本本地

Please help. 请帮忙。

我们抛弃了交互式插件,并编写了自己的脚本,该脚本将使用上传和下载规范将工件从一个存储库升级到另一个存储库。

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

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