How do I get only selected jenkins information from the API response.
I tried with the below url
and it returned almost all data present in the build details.
How do I filter rulesetid,branch details only from the parameter object, while rest of the parameters are not required in the response.
Below is my API Response
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowJob",
"builds": [
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"actions": [
{
"_class": "hudson.model.ParametersAction",
"parameters": [
{
"_class": "hudson.model.TextParameterValue",
"name": "rulesetid",
"value": "62e11268999630f4a49295c4"
},
{
"_class": "hudson.model.TextParameterValue",
"name": "environment",
"value": "sit"
},
{
"_class": "hudson.model.TextParameterValue",
"name": "tranid",
"value": "1234"
}
]
},
{
"_class": "org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"
}
],
"number": 243,
"result": "SUCCESS",
"url": "https://jenkins.myrepodigital.com/job/architecture-shared-services/job/myrepoio-io-rmaappetite_sit/243/"
},
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"actions": [
{
"_class": "hudson.model.ParametersAction",
"parameters": [
{
"_class": "hudson.model.TextParameterValue",
"name": "branch",
"value": "sit"
},
{
"_class": "hudson.model.TextParameterValue",
"name": "environment",
"value": "sit"
},
{
"_class": "hudson.model.TextParameterValue",
"name": "tranid",
"value": "12345"
}
]
},
{
"_class": "org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"
}
],
"number": 243,
"result": "SUCCESS",
"url": "https://jenkins.myrepodigital.com/job/architecture-shared-services/job/myrepoio-io-rmaappetite_sit/243/"
}
]
}
How do I get only selected jenkins information from the API response.
…
How do I filter rulesetid,branch details only from the parameter object, while rest of the parameters are not required in the response.