Changing build number on buildInfo returned by mvn leads to publish problem

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: artifactory-plugin
    • None

      When changing the build number of buildInfo retrieved from a maven run, the artifacts on the resulting build in artifactory go 'missing'. The repo path shows 'No path found (externally resolved or deleted/overwritten)' although the artifacts do exist in the repository. 

      Then leaving the build number untouched, all works as expected

      mvnBuildInfo = rtMaven.run pom: 'pom.xml', goals: '-B clean install'
      //when uncommenting below line, the buildInfo on artifactory gets messed up 
      //mvnBuildInfo.number = mvnBuildInfo.number + "-mvn"                              server.publishBuildInfo buildInfo
      
      

       

      I have seen a similar issue reported at https://github.com/jfrog/build-info/issues/131

      jenkins version: 2.107.3

      "artifactoryPluginVersion": "2.16.1"

            Assignee:
            Eyal Ben Moshe
            Reporter:
            koen janssens
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: