forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmitBuilds.ts
73 lines (73 loc) · 3 KB
/
submitBuilds.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** The result of a successful `submitBuilds` request.* */
export interface SubmitBuilds {
/**
* The keys of builds that have been accepted for submission. A build key is a composite key that consists of
* `pipelineId` and `buildNumber`.
*
* A build may be rejected if it was only associated with unknown issue keys, or if the submitted data for that build
* does not match the required schema.
*
* Note that a build that isn't updated due to it's `updateSequenceNumber` being out of order is not considered a
* failed submission.
*/
acceptedBuilds?: {
/**
* An ID that relates a sequence of builds. Depending on your system this might be a project ID, pipeline ID, plan
* key etc. - whatever logical unit you use to group a sequence of builds.
*
* The combination of `pipelineId` and `buildNumber` must uniquely identify the build.
*/
pipelineId: string;
/**
* Identifies a build within the sequence of builds identified by the build `pipelineId`.
*
* Used to identify the 'most recent' build in that sequence of builds.
*
* The combination of `pipelineId` and `buildNumber` must uniquely identify the build.
*/
buildNumber: number;
}[];
/**
* Details of builds that have not been accepted for submission.
*
* A build may be rejected if it was only associated with unknown issue keys, or if the submitted data for the build
* does not match the required schema.
*/
rejectedBuilds?: {
/** Fields that uniquely reference a build. */
key: {
/**
* An ID that relates a sequence of builds. Depending on your system this might be a project ID, pipeline ID, plan
* key etc. - whatever logical unit you use to group a sequence of builds.
*
* The combination of `pipelineId` and `buildNumber` must uniquely identify the build.
*/
pipelineId: string;
/**
* Identifies a build within the sequence of builds identified by the build `pipelineId`.
*
* Used to identify the 'most recent' build in that sequence of builds.
*
* The combination of `pipelineId` and `buildNumber` must uniquely identify the build.
*/
buildNumber: number;
};
/** The error messages for the rejected build */
errors: {
/** A human-readable message describing the error. */
message: string;
/** An optional trace ID that can be used by Jira developers to locate the source of the error. */
errorTraceId?: string;
}[];
}[];
/**
* Issue keys that are not known on this Jira instance (if any).
*
* These may be invalid keys (e.g. `UTF-8` is sometimes incorrectly identified as a Jira issue key), or they may be
* for projects that no longer exist.
*
* If a build has been associated with issue keys other than those in this array it will still be stored against those
* valid keys. If a build was only associated with issue keys deemed to be invalid it won't be persisted.
*/
unknownIssueKeys?: string[];
}