jfrog / teamcity-artifactory-plugin

TeamCity plugin that enables traceable build artifacts with Artifactory
https://www.jfrog.com/confluence/display/JFROG/TeamCity+Artifactory+Plug-in
Apache License 2.0
42 stars 48 forks source link

Latest version of Teamcity artifactory plugin expecting a delete/override permission if we publish multiple buildinfos from a single build job #135

Open tataraov opened 1 year ago

tataraov commented 1 year ago

Problem statement : If we deploy two build info objects from the same build job, the latest version of the TeamCity Artifactory plugin expects a delete/override permission for publishing the second build object. Artifactory allows publishing multiple build-info's with the same build name and number. However, they are still different build-info instances, with different timestamps. It seems that the bug in the plugin stopped changing the timestamps between steps. This issue was not reproducible in the 2.7.0 version of the plugin, however, able to reproduce in versions 2.9.4, 2.10.0, and 2.10.1 versions.

Reproduction Step:

  1. Create a sample build job with two build steps.
  2. Buildstep1 builds a maven application and publishes build info.
  3. Buildstep2 builds uploads an artifact to Artifactory and collects the build info and publishes it to Artifactory.

Workaround:

  1. Provide delete build permission to the user to address the issue. (or)
  2. In the second build step, set the build name to a different one.