ProblemOccurrence
Represents an instance of a failed test in the specific build.
Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET
and use the response as a base for the following POST
request.
A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.
XML
JSON
<problemOccurrence additionalData="string" currentlyInvestigated="true" currentlyMuted="true" details="string" href="string" id="string" identity="string" logAnchor="string" muted="true" newFailure="true" type="string">
<problem description="string" href="string" id="string" identity="string" locator="string" type="string">
<mutes>mutes...</mutes>
<investigations>investigations...</investigations>
<problemOccurrences>problemOccurrences...</problemOccurrences>
</problem>
<mute href="string" id="123">
<assignment>comment...</assignment>
<scope>ProblemScope...</scope>
<target>ProblemTarget...</target>
<resolution>Resolution...</resolution>
</mute>
<build artifactsDirectory="/Users/John.Doe/.BuildServer/system/artifacts/ProjectName/ConfigName/1337" branchName="sandbox" buildTypeId="ProjectName_BuildConfName" buildTypeInternalId="string" chainModificationId="string" changesCollectingInProgress="false" composite="false" currentSettingsHash="string" customized="true" defaultBranch="true" detachedFromAgent="false" failedToStart="true" finishDate="20240408T162702+0200" finishEstimate="20240409T160130+0200" finishOnAgentDate="20240408T162702+0200" history="true" href="/app/rest/builds/id:8006" id="8134" limitedChangesCount="3" locator="string" modificationId="string" number="54" percentageComplete="123" personal="true" pinned="true" queuePosition="2" queuedDate="20240408T162059+0200" running="true" settingsHash="string" startDate="20240408T162559+0200" startEstimate="20240409T155123+0200" state="queued" status="SUCCESS" statusText="Tests passed: 5, muted: 1" taskId="123456789" unspecifiedBranch="false" usedByOtherBuilds="true" waitReason="There are no idle compatible agents which can run this build" webUrl="https://example.com/app/rest/builds/id:8006">
<links>links...</links>
<buildType>buildType...</buildType>
<comment>comment...</comment>
<tags>tags...</tags>
<pinInfo>comment...</pinInfo>
<user>user...</user>
<delayedByBuild>build...</delayedByBuild>
<plannedAgent>agent...</plannedAgent>
<approvalInfo>approvalInfo...</approvalInfo>
<running-info>progress-info...</running-info>
<canceledInfo>comment...</canceledInfo>
<triggered>TriggeredBy...</triggered>
<lastChanges>changes...</lastChanges>
<changes>changes...</changes>
<revisions>Revisions...</revisions>
<versionedSettingsRevision>Revision...</versionedSettingsRevision>
<artifactDependencyChanges>buildChanges...</artifactDependencyChanges>
<agent>agent...</agent>
<compatibleAgents>agents...</compatibleAgents>
<compatibleCloudImages>cloudImages...</compatibleCloudImages>
<testOccurrences>testOccurrences...</testOccurrences>
<problemOccurrences>problemOccurrences...</problemOccurrences>
<artifacts>files...</artifacts>
<relatedIssues>issuesUsages...</relatedIssues>
<properties>properties...</properties>
<resultingProperties>properties...</resultingProperties>
<originalProperties>properties...</originalProperties>
<startProperties>properties...</startProperties>
<attributes>entries...</attributes>
<statistics>properties...</statistics>
<metadata>datas...</metadata>
<snapshot-dependencies>builds...</snapshot-dependencies>
<artifact-dependencies>builds...</artifact-dependencies>
<custom-artifact-dependencies>artifact-dependencies...</custom-artifact-dependencies>
<replacementIds>items...</replacementIds>
<related>related...</related>
<triggeringOptions>buildTriggeringOptions...</triggeringOptions>
<statusChangeComment>comment...</statusChangeComment>
<vcsLabels>vcsLabel...</vcsLabels>
<customization>customizations...</customization>
<queuedWaitReasons>properties...</queuedWaitReasons>
<downloadedArtifacts>downloadedArtifacts...</downloadedArtifacts>
<matrixConfiguration>MatrixConfiguration...</matrixConfiguration>
<firstBuildWithSameChanges>build...</firstBuildWithSameChanges>
</build>
</problemOccurrence>
{
"newFailure" : true,
"mute" : {
"assignment" : {
"text" : "text",
"user" : "user...",
"timestamp" : "timestamp"
},
"scope" : {
"buildTypes" : {
"buildType" : [ "buildType..." ],
"count" : 3,
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"buildType" : {
"template" : "buildType...",
"paused" : true,
"description" : "description",
"project" : "project...",
"investigations" : "investigations...",
"templateFlag" : true,
"type" : "regular",
"uuid" : "uuid",
"projectInternalId" : "projectInternalId",
"internalId" : "internalId",
"features" : "features...",
"builds" : "builds...",
"links" : "links...",
"id" : "id",
"href" : "href",
"compatibleCloudImages" : "cloudImages...",
"settings" : "properties...",
"vcsRootInstances" : "vcs-root-instances...",
"templates" : "buildTypes...",
"artifact-dependencies" : "artifact-dependencies...",
"compatibleAgents" : "agents...",
"pauseComment" : "comment...",
"triggers" : "triggers...",
"branches" : "branches...",
"steps" : "steps...",
"externalStatusAllowed" : true,
"agent-requirements" : "agent-requirements...",
"webUrl" : "webUrl",
"inherited" : true,
"snapshot-dependencies" : "snapshot-dependencies...",
"name" : "name",
"vcs-root-entries" : "vcs-root-entries...",
"projectName" : "projectName",
"projectId" : "projectId",
"parameters" : "properties...",
"locator" : "locator"
},
"project" : {
"virtual" : true,
"parentProjectName" : "parentProjectName",
"vcsRoots" : {
"count" : 2,
"vcs-root" : [ "vcs-root..." ],
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"projects" : {
"count" : 8,
"project" : [ "project..." ],
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"defaultTemplate" : {
"template" : "buildType...",
"paused" : true,
"description" : "description",
"project" : "project...",
"investigations" : "investigations...",
"templateFlag" : true,
"type" : "regular",
"uuid" : "uuid",
"projectInternalId" : "projectInternalId",
"internalId" : "internalId",
"features" : "features...",
"builds" : "builds...",
"links" : "links...",
"id" : "id",
"href" : "href",
"compatibleCloudImages" : "cloudImages...",
"settings" : "properties...",
"vcsRootInstances" : "vcs-root-instances...",
"templates" : "buildTypes...",
"artifact-dependencies" : "artifact-dependencies...",
"compatibleAgents" : "agents...",
"pauseComment" : "comment...",
"triggers" : "triggers...",
"branches" : "branches...",
"steps" : "steps...",
"externalStatusAllowed" : true,
"agent-requirements" : "agent-requirements...",
"webUrl" : "webUrl",
"inherited" : true,
"snapshot-dependencies" : "snapshot-dependencies...",
"name" : "name",
"vcs-root-entries" : "vcs-root-entries...",
"projectName" : "projectName",
"projectId" : "projectId",
"parameters" : "properties...",
"locator" : "locator"
},
"description" : "description",
"uuid" : "uuid",
"parentProjectInternalId" : "parentProjectInternalId",
"cloudProfiles" : {
"count" : 6,
"prevHref" : "prevHref",
"href" : "href",
"cloudProfile" : [ "cloudProfile..." ],
"nextHref" : "nextHref"
},
"internalId" : "internalId",
"archived" : true,
"parentProjectId" : "parentProjectId",
"deploymentDashboards" : {
"count" : 0,
"deploymentDashboard" : [ "deploymentDashboard..." ],
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"links" : {
"count" : 4,
"link" : [ "link..." ]
},
"id" : "id",
"href" : "href",
"parentProject" : {
"virtual" : true,
"parentProjectName" : "parentProjectName",
"vcsRoots" : "vcs-roots...",
"projects" : "projects...",
"defaultTemplate" : "buildType...",
"description" : "description",
"uuid" : "uuid",
"parentProjectInternalId" : "parentProjectInternalId",
"cloudProfiles" : "cloudProfiles...",
"internalId" : "internalId",
"archived" : true,
"parentProjectId" : "parentProjectId",
"deploymentDashboards" : "deploymentDashboards...",
"links" : "links...",
"id" : "id",
"href" : "href",
"parentProject" : "project...",
"templates" : "buildTypes...",
"readOnlyUI" : "StateField...",
"webUrl" : "webUrl",
"buildTypes" : "buildTypes...",
"name" : "name",
"ancestorProjects" : "projects...",
"parameters" : "properties...",
"projectFeatures" : "projectFeatures...",
"locator" : "locator"
},
"templates" : {
"buildType" : [ "buildType..." ],
"count" : 3,
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"readOnlyUI" : {
"inherited" : true,
"value" : true
},
"webUrl" : "webUrl",
"buildTypes" : {
"buildType" : [ "buildType..." ],
"count" : 3,
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"name" : "name",
"ancestorProjects" : {
"count" : 8,
"project" : [ "project..." ],
"prevHref" : "prevHref",
"href" : "href",
"nextHref" : "nextHref"
},
"parameters" : {
"count" : 1,
"property" : [ {
"inherited" : true,
"name" : "name",
"type" : "type...",
"value" : "value"
} ],
"href" : "href"
},
"projectFeatures" : {
"projectFeature" : [ "projectFeature..." ],
"count" : 1,
"href" : "href"
},
"locator" : "locator"
}
},
"id" : 4,
"href" : "href",
"resolution" : {
"time" : "time",
"type" : "manually"
},
"target" : {
"tests" : {
"test" : [ {
"testOccurrences" : "testOccurrences...",
"name" : "name",
"investigations" : "investigations...",
"parsedTestName" : "ParsedTestName...",
"id" : "id",
"href" : "href",
"mutes" : "mutes...",
"locator" : "locator"
} ],
"count" : 4,
"myTestCounters" : {
"all" : 9,
"duration" : 0,
"ignored" : 8,
"newFailed" : 8,
"success" : 3,
"failed" : 9,
"muted" : 1
},
"prevHref" : "prevHref",
"nextHref" : "nextHref"
},
"anyProblem" : true,
"problems" : {
"problem" : [ {
"problemOccurrences" : "problemOccurrences...",
"identity" : "identity",
"description" : "description",
"investigations" : "investigations...",
"id" : "id",
"href" : "href",
"type" : "type",
"mutes" : "mutes...",
"locator" : "locator"
} ],
"count" : 5,
"prevHref" : "prevHref",
"nextHref" : "nextHref"
}
}
},
"type" : "type",
"currentlyInvestigated" : true,
"logAnchor" : "logAnchor",
"problem" : {
"problemOccurrences" : "problemOccurrences...",
"identity" : "identity",
"description" : "description",
"investigations" : "investigations...",
"id" : "id",
"href" : "href",
"type" : "type",
"mutes" : "mutes...",
"locator" : "locator"
},
"build" : {
"agent" : "agent...",
"metadata" : "datas...",
"triggered" : "TriggeredBy...",
"usedByOtherBuilds" : true,
"settingsHash" : "settingsHash",
"number" : "54",
"chainModificationId" : "chainModificationId",
"changesCollectingInProgress" : false,
"lastChanges" : "changes...",
"resultingProperties" : "properties...",
"composite" : false,
"links" : "links...",
"id" : 8134,
"state" : "queued",
"href" : "/app/rest/builds/id:8006",
"detachedFromAgent" : false,
"compatibleCloudImages" : "cloudImages...",
"artifacts" : "files...",
"testOccurrences" : "testOccurrences...",
"artifactDependencyChanges" : "buildChanges...",
"startProperties" : "properties...",
"defaultBranch" : true,
"compatibleAgents" : "agents...",
"artifact-dependencies" : "builds...",
"replacementIds" : "items...",
"personal" : true,
"history" : true,
"tags" : "tags...",
"canceledInfo" : "comment...",
"matrixConfiguration" : "MatrixConfiguration...",
"running-info" : "progress-info...",
"versionedSettingsRevision" : "Revision...",
"percentageComplete" : 6,
"webUrl" : "https://example.com/app/rest/builds/id:8006",
"buildType" : "buildType...",
"triggeringOptions" : "buildTriggeringOptions...",
"locator" : "locator",
"startDate" : "20240408T162559+0200",
"status" : "SUCCESS",
"pinned" : true,
"customized" : true,
"approvalInfo" : "approvalInfo...",
"vcsLabels" : [ "vcsLabel..." ],
"customization" : "customizations...",
"finishEstimate" : "20240409T160130+0200",
"changes" : "changes...",
"plannedAgent" : "agent...",
"running" : true,
"statusChangeComment" : "comment...",
"finishOnAgentDate" : "20240408T162702+0200",
"buildTypeId" : "ProjectName_BuildConfName",
"buildTypeInternalId" : "buildTypeInternalId",
"originalProperties" : "properties...",
"modificationId" : "modificationId",
"related" : "related...",
"failedToStart" : true,
"revisions" : "Revisions...",
"delayedByBuild" : "build...",
"queuePosition" : 2,
"problemOccurrences" : "problemOccurrences...",
"artifactsDirectory" : "/Users/John.Doe/.BuildServer/system/artifacts/ProjectName/ConfigName/1337",
"relatedIssues" : "issuesUsages...",
"branchName" : "sandbox",
"startEstimate" : "20240409T155123+0200",
"downloadedArtifacts" : "downloadedArtifacts...",
"limitedChangesCount" : 3,
"firstBuildWithSameChanges" : "build...",
"currentSettingsHash" : "currentSettingsHash",
"unspecifiedBranch" : false,
"queuedWaitReasons" : "properties...",
"waitReason" : "There are no idle compatible agents which can run this build",
"pinInfo" : "comment...",
"snapshot-dependencies" : "builds...",
"statusText" : "Tests passed: 5, muted: 1",
"custom-artifact-dependencies" : "artifact-dependencies...",
"comment" : "comment...",
"finishDate" : "20240408T162702+0200",
"attributes" : "entries...",
"user" : "user...",
"queuedDate" : "20240408T162059+0200",
"taskId" : 3,
"properties" : "properties...",
"statistics" : "properties..."
},
"identity" : "identity",
"currentlyMuted" : true,
"details" : "details",
"id" : "id",
"href" : "href",
"additionalData" : "additionalData",
"muted" : true
}
Thanks for your feedback!
Was this page helpful?