Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8287133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:57:09+00:00 2026-06-08T11:57:09+00:00

I am trying to use Jenkins(Hudson) Remote API to consume XML response from a

  • 0

I am trying to use Jenkins(Hudson) Remote API to consume XML response from a freeStyleProject.

Researching about the tree query parameter in the Jenkins documentation and here I have been trying to use it to improve response times to get XML response. But Jenkins seems to be unable to generate the nodes downstreamProject of the job and the action/parameter of the builds with this URL:

http://localhost/job/MyJob/api/xml?depth=2&tree=name,description,builds%5Baction[parameter[name,value]]number,url,timestamp,result],healthReport[score,description],downstreamProject[name,url]

I just get this response XML:

<freeStyleProject>
    <description>Description</description> 
    <name>MyJob</name> 
    <build>
        <number>2</number> 
        <result>SUCCESS</result> 
        <timestamp>1325784290000</timestamp> 
        <url>http://localhost/job/MyJob/2/</url> 
    </build>
    <build>
      <number>1</number> 
      <result>SUCCESS</result> 
      <timestamp>1323931754000</timestamp> 
      <url>http://localhost/job/MyJob/1/</url> 
    </build>
    <healthReport>
       <description>Build stability: No recent builds failed.</description> 
       <score>100</score> 
    </healthReport>
</freeStyleProject>

Perhaps the tree query parameter does not support these? Would the only way to get this nodes using the xpath and exlude query parameters?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:57:11+00:00Added an answer on June 8, 2026 at 11:57 am

    For the “tree” parameter, the pieces you are looking for are plurals (where you have singulars).

    action => actions

    parameter => parameters

    downstreamProject => downstreamProjects

    So, your url would be:

    http://localhost/job/MyJob/api/xml?depth=2&tree=name,description,builds%5Bactions%5Bparameters%5Bname,value%5D%5D,number,url,timestamp,result%5D,healthReport%5Bscore,description%5D,downstreamProjects%5Bname,url%5D

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying use facebook API to upload photo in my fan page. I downloaded
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Trying to use Powershell to script the removal of specific custom errors from an
Trying to configure Jenkins CI. Currently just running it from the .war (eventual intention
I'm trying to run Junit test from my ant build.xml file. I read here
I'm trying to take Jenkins from a CI machine, and I would like to
i'm trying use webview to load a image from sdcard i use this path
I want that my jenkins job will use env variables from a properties file.
I've just started with Jenkins and I'm just trying to use it to execute
I'm trying to use Jenkins (Global) environment variables in my xcopy script. ${WORKSPACE} doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.