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

JSON returned via @JsonResponse is different to JSON by get...() methods

XMLWordPrintable

    • 1.0-m10

      This comes from /organizations/jenkins/pipelines/pipeline1/queue

      [{"_class":"io.jenkins.blueocean.service.embedded.rest.QueueItemImpl","expectedBuildNumber":4,"id":"4","pipeline":"pipeline1","queuedTime":1465795997362},{"_class":"io.jenkins.blueocean.service.embedded.rest.QueueItemImpl","expectedBuildNumber":3,"id":"3","pipeline":"pipeline1","queuedTime":1465795997359}]
      

      This comes from my new api /organizations/jenkins/pipelines/pipeline1/queue/new to start a build on a pipeline. Its the same object. Note the date is serialized differently. It also doesn't have the links stuff.

      {"expectedBuildNumber":1,"id":"3","pipeline":"pipeline3","queuedTime":{"date":13,"day":1,"hours":17,"minutes":47,"month":5,"seconds":3,"time":1465796823421,"timezoneOffset":-720,"year":116}}
      

            vivek Vivek Pandey
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: