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

Export assignedLabels for slaves and jobs in JSON and XML APIs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      I have an external script which is using the JSON API and has a need to see which labels are applied to nodes and which labels are required for jobs.

      This issue and associated pull request export these members to the JSON and XML APIs.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: benru
            Path:
            core/src/main/java/hudson/model/AbstractProject.java
            core/src/main/java/hudson/model/Computer.java
            core/src/main/java/hudson/model/Label.java
            http://jenkins-ci.org/commit/jenkins/3a0a575ecf4f68ecb1e91a249c304d683e5c273c
            Log:
            JENKINS-25286: Export assigned labels for slaves and the label expression for jobs in JSON and XML APIs

            Adds @Export attribute to assignedLabels for Computer and AbstractProject
            Also adjusts visibility on Label "name" parameter so it appears by default

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: benru Path: core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/model/Computer.java core/src/main/java/hudson/model/Label.java http://jenkins-ci.org/commit/jenkins/3a0a575ecf4f68ecb1e91a249c304d683e5c273c Log: JENKINS-25286 : Export assigned labels for slaves and the label expression for jobs in JSON and XML APIs Adds @Export attribute to assignedLabels for Computer and AbstractProject Also adjusts visibility on Label "name" parameter so it appears by default
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/model/AbstractProject.java
            core/src/main/java/hudson/model/Computer.java
            core/src/main/java/hudson/model/Label.java
            http://jenkins-ci.org/commit/jenkins/972257bf322fc94b8c2a0095f5f04b91960a6888
            Log:
            Merge pull request #1437 from benru/JENKINS-25286

            [FIXED JENKINS-25286] Export assignedLabels for agents and jobs in JSON and XML APIs

            Compare: https://github.com/jenkinsci/jenkins/compare/59b9658a56f7...972257bf322f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/model/Computer.java core/src/main/java/hudson/model/Label.java http://jenkins-ci.org/commit/jenkins/972257bf322fc94b8c2a0095f5f04b91960a6888 Log: Merge pull request #1437 from benru/ JENKINS-25286 [FIXED JENKINS-25286] Export assignedLabels for agents and jobs in JSON and XML APIs Compare: https://github.com/jenkinsci/jenkins/compare/59b9658a56f7...972257bf322f

              People

              • Assignee:
                benru Ben Russell
                Reporter:
                benru Ben Russell
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: