Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52363

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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"

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

              Created:
              Updated: