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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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"

        Attachments

          Activity

          Hide
          kkwapnioski Kyle Kwapnioski added a comment -

          I was troubleshooting a similar issue maven and jenkins today where the artifacts were deploying, they had links to the build, but the build had "No path found (externally resolved or deleted/overwritten)" and promotion from staging to release would fail. Turns out permissions on the staging repo were setup without "Annotate" and adding this permission fixed my issue.

          Show
          kkwapnioski Kyle Kwapnioski added a comment - I was troubleshooting a similar issue maven and jenkins today where the artifacts were deploying, they had links to the build, but the build had "No path found (externally resolved or deleted/overwritten)" and promotion from staging to release would fail. Turns out permissions on the staging repo were setup without "Annotate" and adding this permission fixed my issue.

            People

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

              Dates

              Created:
              Updated: