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

Export assignedLabels for slaves and jobs in JSON and XML APIs

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      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.

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

          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

          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

          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

          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

            benru Ben Russell
            benru Ben Russell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: