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

Enable REST API for jobConfigHistory for the computer action

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It's currently not possible to retrieve computer configuration history using the REST API. The current alternative is to write groovy script and use the Jenkins CLI client.

      This can be done exporting the getSlaveConfigs() method in ComputerConfigHistoryProjectAction as a bean. Then add a public getApi() method to the class that returns a new instance of hudson.model.Api of itself.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Charles Stephens
            Path:
            src/main/java/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction.java
            http://jenkins-ci.org/commit/jobConfigHistory-plugin/2a305a02f075c418b86b19e6c4090937625f3356
            Log:
            [FIXED JENKINS-22895] Added REST API support for the computer action.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Charles Stephens Path: src/main/java/hudson/plugins/jobConfigHistory/ComputerConfigHistoryAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/2a305a02f075c418b86b19e6c4090937625f3356 Log: [FIXED JENKINS-22895] Added REST API support for the computer action.

              People

              • Assignee:
                cfs Charles Stephens
                Reporter:
                cfs Charles Stephens
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: