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

Provide build report API support

    XMLWordPrintable

Details

    Description

      Standard jobs provide API endpoints for inspecting job statuses from other applications. This would be extremely useful for multijobs as well, particularly if there were a way to retrieve the build numbers of the downstream projects that were triggered from a given multijob top level build.

      Ie http://jenkins/job/MultijobJob/5/api/json would return a basic json report including the same info that is displayed in the web interface when visiting a build status page.

      Should also work for /lastSuccessfulBuild, etc as well.

      Attachments

        Activity

          dkichler Dave Kichler added a comment -

          Resolved from a development perspective. Should be available in the next release of the plugin (slated to be 1.10)

          dkichler Dave Kichler added a comment - Resolved from a development perspective. Should be available in the next release of the plugin (slated to be 1.10)
          dkichler Dave Kichler added a comment - Pull request #25 was merged: http://jenkins-ci.org/commit/tikal-multijob-plugin/18e18888a3978b29138ecc2818bd4f7597706001

          Code changed in jenkins
          User: Dave Kichler
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuild.java
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
          http://jenkins-ci.org/commit/tikal-multijob-plugin/18e18888a3978b29138ecc2818bd4f7597706001
          Log:
          Fixes improvement https://issues.jenkins-ci.org/browse/JENKINS-18361:

          • Exposed subbuild info through remote API and environment variables.
          • Corrected how environment variables were being injected
          • Minor tweaks to the envrionment variables that are injected
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dave Kichler Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuild.java src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java http://jenkins-ci.org/commit/tikal-multijob-plugin/18e18888a3978b29138ecc2818bd4f7597706001 Log: Fixes improvement https://issues.jenkins-ci.org/browse/JENKINS-18361: Exposed subbuild info through remote API and environment variables. Corrected how environment variables were being injected Minor tweaks to the envrionment variables that are injected
          dkichler Dave Kichler added a comment -

          Created pull request for review and acceptance:
          https://github.com/jenkinsci/tikal-multijob-plugin/pull/25

          dkichler Dave Kichler added a comment - Created pull request for review and acceptance: https://github.com/jenkinsci/tikal-multijob-plugin/pull/25
          dkichler Dave Kichler added a comment -

          Investigating how to expose additional sub-build info through the API, possibly even through injected environment variables as well.

          dkichler Dave Kichler added a comment - Investigating how to expose additional sub-build info through the API, possibly even through injected environment variables as well.
          doronshai Doron Shai added a comment - - edited

          This is Super important in order to make this Plugin the standard way of running multiple jobs.

          At the moment, If i want to have a report that is calculated at the end of the MultiJob Project i have to do some magics which are very ugly.

          The main reason is that in order to display build results of inner jobs, i have to know the build number of this jobs.

          At the moment there is no nice way to do so.

          I hope that you will manage to provide such an ability soon.

          doronshai Doron Shai added a comment - - edited This is Super important in order to make this Plugin the standard way of running multiple jobs. At the moment, If i want to have a report that is calculated at the end of the MultiJob Project i have to do some magics which are very ugly. The main reason is that in order to display build results of inner jobs, i have to know the build number of this jobs. At the moment there is no nice way to do so. I hope that you will manage to provide such an ability soon.

          People

            dkichler Dave Kichler
            dkichler Dave Kichler
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: