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

List Maven Deployments in Remote Access API (JSON & XML) Produced by the Maven Deployment Linker

    XMLWordPrintable

Details

    Description

      While using the Maven Deployment Linker, and not otherwise storing build artifacts locally, "Maven Deployments" are listed for every build as links to your Maven Repository (e.g.: Artifactory). But there is no corresponding data retrieved while using the Remote Access API (JSON or XML). For example, if you had a link similar to this:

      http://<hostname>/jenkins/job/<jobname>/<buildnumber>/

      You'll see a list of build artifacts deployed to your Maven Repo. But when hitting the Remote Access API like this:

      http://<hostname>/jenkins/job/<jobname>/<buildnumber>/api/json?pretty=true

      You end up with:

      "mavenArtifacts" : null,

      Attachments

        Activity

          lshatzer Larry Shatzer, Jr. added a comment - - edited

          "mavenArtifacts" comes from the maven plugin. This plugin does not expose anything via the remote api. All it might take is an @ExportedBean some classes. I'll see what I can do, if you wanted to try, see https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API

          lshatzer Larry Shatzer, Jr. added a comment - - edited "mavenArtifacts" comes from the maven plugin. This plugin does not expose anything via the remote api. All it might take is an @ExportedBean some classes. I'll see what I can do, if you wanted to try, see https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API

          People

            Unassigned Unassigned
            marc_swingler Marc Swingler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: