This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      We are using Bitbucket and pull-request-notifier-for-Bitbucket to notify jenkins of pull request.
      Jenkins uses the git-plugin to do a premerge of the specific branch into master.

      If a new pr is opened the premerge and build works fine. But if the build failes and pull request is triggered a second time the error "reference is not a tree" occurs. 

      After debugging the git plugin for some time I found out that the Build.xml is saves already build branches/revisions and therefore skips the merge part, which leads to the error.

      data represents the BuildData from the previous build.xml. 

      After creating a new project and creating a pull request, I've noticed that the error does not occur. After debugging both projects I've come to the conclusion, that the build.xml is identical but the new project only extracts the first occurance of BuildData, while the failing project uses all occurances. 

      Failing project: all returns all occurances of BuildData

      Successful project: return first occurance of BuildData

       Why is build.getActions returning different results?

      The current Workaround includes modifing the git plugin in a way that it does not remove already build revisions.

        1. image-2018-01-15-13-19-04-018.png
          85 kB
          Patrick Kerschbaumer
        2. image-2018-01-15-13-22-12-164.png
          24 kB
          Patrick Kerschbaumer
        3. image-2018-01-15-13-30-25-807.png
          51 kB
          Patrick Kerschbaumer
        4. image-2018-01-15-13-31-17-323.png
          27 kB
          Patrick Kerschbaumer
        5. image-2018-01-15-13-32-53-489.png
          21 kB
          Patrick Kerschbaumer

            Assignee:
            Unassigned
            Reporter:
            Patrick Kerschbaumer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: