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

Jenkins Remote API does not show details for pipeline jobs


    • Similar Issues:


      Problem description:

      We use the Jenkins remote REST API for example /api/json?tree=views[name,jobs[name,description,color,url,lastBuild[number,duration,timestamp,result]]] to get metadata of all existing jobs. Now we start using the Pipeline features only the folder of GIT organization of the pipeline is listed as job in the response

      { "description" : "", "name" : "squad-example", "url" : "http://hostname:portl/job/squad-example/" }


      but not the nested jobs of each folder. Our assumption was that the jobs are listed as other jobs because in the UI it show the fullname squad-example/gitrepo/master.

      We found a REST api from the plugin Pipeline+Stage+View+Plugin to get metadata for each pipeline nested job if the name is known but there is not the detailed entry in the usual remote api. The plugin rest api we can only use when we know the specific path to the job and the usual remote api does give a link to it.

      How we can proceed the get the data?



          jimjaeger jim jaeger created issue -
          svanoort Sam Van Oort made changes -
          Field Original Value New Value
          Component/s workflow-plugin [ 18820 ]
          Component/s pipeline-stage-view-plugin [ 21139 ]
          Component/s remoting [ 15489 ]
          svanoort Sam Van Oort made changes -
          Component/s core [ 15593 ]
          danielbeck Daniel Beck made changes -
          Component/s core [ 15593 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 173395 ] JNJira + In-Review [ 185104 ]
          abayer Andrew Bayer made changes -
          Component/s pipeline-general [ 21692 ]
          abayer Andrew Bayer made changes -
          Component/s workflow-plugin [ 18820 ]
          abayer Andrew Bayer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Not A Defect [ 7 ]


            • Assignee:
              jimjaeger jim jaeger
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: