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

Enable REST API for jobConfigHistory on job and root actions

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It's currently not possible to retrieve job 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 getConfigs(), and getJobConfigs() methods in JobConfigHistoryProjectAction, and JobConfigHistoryRootAction as beans. Then add a public getApi() method in each class to return 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/JobConfigHistoryProjectAction.java
            src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction.java
            http://jenkins-ci.org/commit/jobConfigHistory-plugin/a18dfd1b3df22d26db6045676292ea2aa8513710
            Log:
            [FIXED JENKINS-22796] Added REST API support for root and job actions.

            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/JobConfigHistoryProjectAction.java src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/a18dfd1b3df22d26db6045676292ea2aa8513710 Log: [FIXED JENKINS-22796] Added REST API support for root and job actions.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stefan Brausch
            Path:
            src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction.java
            src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction.java
            http://jenkins-ci.org/commit/jobConfigHistory-plugin/b8ec84565b70181cf848abdceac34b4d1274657c
            Log:
            Merge pull request #30 from cfs-pure/master

            [FIXED JENKINS-22796] Added REST API support for root and job actions.

            Compare: https://github.com/jenkinsci/jobConfigHistory-plugin/compare/7eff75b14114...b8ec84565b70

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Brausch Path: src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryProjectAction.java src/main/java/hudson/plugins/jobConfigHistory/JobConfigHistoryRootAction.java http://jenkins-ci.org/commit/jobConfigHistory-plugin/b8ec84565b70181cf848abdceac34b4d1274657c Log: Merge pull request #30 from cfs-pure/master [FIXED JENKINS-22796] Added REST API support for root and job actions. Compare: https://github.com/jenkinsci/jobConfigHistory-plugin/compare/7eff75b14114...b8ec84565b70

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: