jfrog / project-examples

Small projects in universal build ecosystems to configure CI and Artifactory
1.01k stars 2.39k forks source link

The Build Object name is not getting updated as expected in Artifactory while using the Artifactory Maven plugin. #288

Open roja03 opened 3 years ago

roja03 commented 3 years ago

Problem Description: When using the Artifactory Maven plugin we could notice that the Build Object name is not getting updated properly in Artifactory.

Steps to reproduce:

  1. Cloned this Project https://github.com/jfrog/project-examples/tree/master/artifactory-maven-plugin-example
  2. Updated the pom.xml file of the contextUrl with Artifactory URL(http://artifactoryurlport/artifactory) and changed the artifactid as multi-test ,build name as ${project.artifactId}-${project.version} where Build Name will come as project artifactid with the project version.
  3. CD to the project directory and run mvn deploy -Dusername=admin -Dpassword=password -Dbuildnumber=4.
  4. After the Build is successful we could see that the build object in the Artifactory UI is not updated correctly and showing as multi1-2.17-SNAPSHOT instead of multi-test:2.17-SNAPSHOT since my artifact id is “multi-test”. I have also attached the screenshots for your [http://g.recordit.co/xWKEKUIjeP.gif]

Expected behavior: When there is a modification performed on the artifact id in the pom.xml the build object name also should be updated accordingly using Maven Artifactory Plugin in Artifactory.

Workaround: No

Customer pain level: 1 (Low)