Michael Neale I've added the JSON API hierarchy below ... *https://jenkins.DOMAINNAME.com/api/json*
*https://jenkins.DOMAINNAME.com/api/json*
{
"_class" : "jenkins.branch.OrganizationFolder",
"actions" : [
{
},
{
},
{
"_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
}
],
"description" : "",
"displayName" : "TEAMNAME",
"displayNameOrNull" : null,
"name" : "TEAMNAME",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/",
"healthReport" : [
{
"description" : "Worst health: TEAMNAME » REPONAME: Worst health: TEAMNAME » REPONAME » BRANCHNAME: Build stability: 2 out of the last 5 builds failed.",
"iconClassName" : "icon-health-40to59",
"iconUrl" : "health-40to59.png",
"score" : 60
}
],
"jobs" : [
{
"_class" : "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject",
"name" : "REPONAME",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
}
],
"primaryView" : {
"_class" : "hudson.model.AllView",
"name" : "All",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/"
},
"views" : [
{
"_class" : "hudson.model.AllView",
"name" : "All",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/"
}
]
}
*https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/api/json*
{
"_class" : "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject",
"actions" : [
{
},
{
},
{
"_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
}
],
"description" : null,
"displayName" : "REPONAME",
"displayNameOrNull" : null,
"name" : "REPONAME",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/",
"healthReport" : [
{
"description" : "Worst health: TEAMNAME » REPONAME » BRANCHNAME1: Build stability: 2 out of the last 5 builds failed.",
"iconClassName" : "icon-health-40to59",
"iconUrl" : "health-40to59.png",
"score" : 60
}
],
"jobs" : [
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
"name" : "BRANCHNAME2",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME2/",
"color" : "blue"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
"name" : "BRANCHNAME1",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME1/",
"color" : "blue"
}
],
"views" : [
{
"_class" : "hudson.model.AllView",
"name" : "All",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
}
],
"primaryView" : {
"_class" : "hudson.model.AllView",
"name" : "All",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/"
}
}
*https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/api/json*
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowJob",
"actions" : [
{
},
{
},
{
},
{
},
{
},
{
},
{
"_class" : "com.cloudbees.plugins.credentials.ViewCredentialsAction"
}
],
"description" : null,
"displayName" : "BRANCHNAME",
"displayNameOrNull" : null,
"name" : "BRANCHNAME",
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/",
"buildable" : true,
"builds" : [
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 8,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 7,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/7/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 6,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/6/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 5,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 4,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/4/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 3,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/3/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 2,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/2/"
},
{
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 1,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/1/"
}
],
"color" : "blue",
"firstBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 1,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/1/"
},
"healthReport" : [
{
"description" : "Build stability: 2 out of the last 5 builds failed.",
"iconClassName" : "icon-health-40to59",
"iconUrl" : "health-40to59.png",
"score" : 60
},
{
"description" : "Test Result: 0 tests failing out of a total of 3,881 tests.",
"iconClassName" : "icon-health-80plus",
"iconUrl" : "health-80plus.png",
"score" : 100
}
],
"inQueue" : false,
"keepDependencies" : false,
"lastBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 8,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
},
"lastCompletedBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 8,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
},
"lastFailedBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 5,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
},
"lastStableBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 8,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
},
"lastSuccessfulBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 8,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/8/"
},
"lastUnstableBuild" : null,
"lastUnsuccessfulBuild" : {
"_class" : "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number" : 5,
"url" : "https://jenkins.DOMAINNAME.com/job/TEAMNAME/job/REPONAME/job/BRANCHNAME/5/"
},
"nextBuildNumber" : 9,
"property" : [
{
"_class" : "org.jenkinsci.plugins.workflow.multibranch.BranchJobProperty",
"branch" : {
}
},
{
"_class" : "jenkins.model.BuildDiscarderProperty"
}
],
"queueItem" : null,
"concurrentBuild" : true
}
|