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

Jenkins build API changeset contains duplicated fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • None
    • Windows Server 2008 R2
      Jenkins Winstone

      When getting data via the REST API

      job/buildnum/api/json
      or
      job/buildnum/api/xml

      The items in the changeSet contain duplicated fields. This causes the C# serialisation code we are using to throw an exception. Not sure if this is a Core issue or a Perforce Plugin issue so I'll try posting as perforce first.

      "changeSet": {
      "items": [{
      "affectedPaths": ["MS3/code/app/drawtest/testrefimages/basiccombined_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_d3dm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_d3dr.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_gnmm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_gnmr.dds",
      "MS3/code/app/drawtest/testrefimages/lighting_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/postfx_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/world_gnm.dds",
      "MS3/tools/bin/bob/build_imagetests.xml"],
      "author":

      { "absoluteUrl": "http://nw01-evotools:8080/user/*****", "fullName": "*****" }

      ,
      "commitId": null,
      "msg": "image test images\n\treviewer=*****",
      "timestamp": -1,
      "affectedPaths": ["MS3/code/app/drawtest/testrefimages/basiccombined_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_d3dm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_d3dr.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_gnmm.dds",
      "MS3/code/app/drawtest/testrefimages/GRIT_gnmr.dds",
      "MS3/code/app/drawtest/testrefimages/lighting_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/postfx_gnm.dds",
      "MS3/code/app/drawtest/testrefimages/world_gnm.dds",
      "MS3/tools/bin/bob/build_imagetests.xml"],
      "author":

      { "absoluteUrl": "http://nw01-evotools:8080/user/*****", "fullName": "*****" }

      ,
      "changeNumber": "21754",
      "changeTime": "2012-07-06 11:08:34",
      "msg": "image test images\n\treviewer=*****"
      }],
      "kind": null
      },

      Thanks

            rpetti Rob Petti
            richardtaylor Richard Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: