Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 555317b

Browse files
committedOct 11, 2022
feat(cloudbuild): update the api
#### cloudbuild:v1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1alpha1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1alpha2 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6) #### cloudbuild:v1beta1 The following keys were added: - schemas.Artifacts.properties.mavenArtifacts (Total Keys: 2) - schemas.Artifacts.properties.pythonPackages (Total Keys: 2) - schemas.MavenArtifact (Total Keys: 7) - schemas.PythonPackage (Total Keys: 5) - schemas.Results.properties.mavenArtifacts (Total Keys: 2) - schemas.Results.properties.pythonPackages (Total Keys: 2) - schemas.UploadedMavenArtifact (Total Keys: 6) - schemas.UploadedPythonPackage (Total Keys: 6)
1 parent 9756c06 commit 555317b

8 files changed

+1476
-4
lines changed
 

‎docs/dyn/cloudbuild_v1.projects.builds.html

+204
Large diffs are not rendered by default.

‎docs/dyn/cloudbuild_v1.projects.locations.builds.html

+204
Large diffs are not rendered by default.

‎docs/dyn/cloudbuild_v1.projects.locations.triggers.html

+306
Large diffs are not rendered by default.

‎docs/dyn/cloudbuild_v1.projects.triggers.html

+306
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/cloudbuild.v1.json

+114-1
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,7 @@
22952295
}
22962296
}
22972297
},
2298-
"revision": "20220916",
2298+
"revision": "20220928",
22992299
"rootUrl": "https://cloudbuild.googleapis.com/",
23002300
"schemas": {
23012301
"ApprovalConfig": {
@@ -2412,9 +2412,23 @@
24122412
},
24132413
"type": "array"
24142414
},
2415+
"mavenArtifacts": {
2416+
"description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.",
2417+
"items": {
2418+
"$ref": "MavenArtifact"
2419+
},
2420+
"type": "array"
2421+
},
24152422
"objects": {
24162423
"$ref": "ArtifactObjects",
24172424
"description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE."
2425+
},
2426+
"pythonPackages": {
2427+
"description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.",
2428+
"items": {
2429+
"$ref": "PythonPackage"
2430+
},
2431+
"type": "array"
24182432
}
24192433
},
24202434
"type": "object"
@@ -4272,6 +4286,33 @@
42724286
},
42734287
"type": "object"
42744288
},
4289+
"MavenArtifact": {
4290+
"description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.",
4291+
"id": "MavenArtifact",
4292+
"properties": {
4293+
"artifactId": {
4294+
"description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.",
4295+
"type": "string"
4296+
},
4297+
"groupId": {
4298+
"description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.",
4299+
"type": "string"
4300+
},
4301+
"path": {
4302+
"description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
4303+
"type": "string"
4304+
},
4305+
"repository": {
4306+
"description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.",
4307+
"type": "string"
4308+
},
4309+
"version": {
4310+
"description": "Maven `version` value used when uploading the artifact to Artifact Registry.",
4311+
"type": "string"
4312+
}
4313+
},
4314+
"type": "object"
4315+
},
42754316
"NetworkConfig": {
42764317
"description": "Defines the network configuration for the pool.",
42774318
"id": "NetworkConfig",
@@ -4622,6 +4663,24 @@
46224663
},
46234664
"type": "object"
46244665
},
4666+
"PythonPackage": {
4667+
"description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.",
4668+
"id": "PythonPackage",
4669+
"properties": {
4670+
"paths": {
4671+
"description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.",
4672+
"items": {
4673+
"type": "string"
4674+
},
4675+
"type": "array"
4676+
},
4677+
"repository": {
4678+
"description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.",
4679+
"type": "string"
4680+
}
4681+
},
4682+
"type": "object"
4683+
},
46254684
"ReceiveTriggerWebhookResponse": {
46264685
"description": "ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.",
46274686
"id": "ReceiveTriggerWebhookResponse",
@@ -4726,10 +4785,24 @@
47264785
},
47274786
"type": "array"
47284787
},
4788+
"mavenArtifacts": {
4789+
"description": "Maven artifacts uploaded to Artifact Registry at the end of the build.",
4790+
"items": {
4791+
"$ref": "UploadedMavenArtifact"
4792+
},
4793+
"type": "array"
4794+
},
47294795
"numArtifacts": {
47304796
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
47314797
"format": "int64",
47324798
"type": "string"
4799+
},
4800+
"pythonPackages": {
4801+
"description": "Python artifacts uploaded to Artifact Registry at the end of the build.",
4802+
"items": {
4803+
"$ref": "UploadedPythonPackage"
4804+
},
4805+
"type": "array"
47334806
}
47344807
},
47354808
"type": "object"
@@ -5141,6 +5214,46 @@
51415214
},
51425215
"type": "object"
51435216
},
5217+
"UploadedMavenArtifact": {
5218+
"description": "A Maven artifact uploaded using the MavenArtifact directive.",
5219+
"id": "UploadedMavenArtifact",
5220+
"properties": {
5221+
"fileHashes": {
5222+
"$ref": "FileHashes",
5223+
"description": "Hash types and values of the Maven Artifact."
5224+
},
5225+
"pushTiming": {
5226+
"$ref": "TimeSpan",
5227+
"description": "Output only. Stores timing information for pushing the specified artifact.",
5228+
"readOnly": true
5229+
},
5230+
"uri": {
5231+
"description": "URI of the uploaded artifact.",
5232+
"type": "string"
5233+
}
5234+
},
5235+
"type": "object"
5236+
},
5237+
"UploadedPythonPackage": {
5238+
"description": "Artifact uploaded using the PythonPackage directive.",
5239+
"id": "UploadedPythonPackage",
5240+
"properties": {
5241+
"fileHashes": {
5242+
"$ref": "FileHashes",
5243+
"description": "Hash types and values of the Python Artifact."
5244+
},
5245+
"pushTiming": {
5246+
"$ref": "TimeSpan",
5247+
"description": "Output only. Stores timing information for pushing the specified artifact.",
5248+
"readOnly": true
5249+
},
5250+
"uri": {
5251+
"description": "URI of the uploaded artifact.",
5252+
"type": "string"
5253+
}
5254+
},
5255+
"type": "object"
5256+
},
51445257
"Volume": {
51455258
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
51465259
"id": "Volume",

‎googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json

+114-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
}
307307
}
308308
},
309-
"revision": "20220916",
309+
"revision": "20220928",
310310
"rootUrl": "https://cloudbuild.googleapis.com/",
311311
"schemas": {
312312
"ApprovalConfig": {
@@ -412,9 +412,23 @@
412412
},
413413
"type": "array"
414414
},
415+
"mavenArtifacts": {
416+
"description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.",
417+
"items": {
418+
"$ref": "MavenArtifact"
419+
},
420+
"type": "array"
421+
},
415422
"objects": {
416423
"$ref": "ArtifactObjects",
417424
"description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE."
425+
},
426+
"pythonPackages": {
427+
"description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.",
428+
"items": {
429+
"$ref": "PythonPackage"
430+
},
431+
"type": "array"
418432
}
419433
},
420434
"type": "object"
@@ -1426,6 +1440,33 @@
14261440
},
14271441
"type": "object"
14281442
},
1443+
"MavenArtifact": {
1444+
"description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.",
1445+
"id": "MavenArtifact",
1446+
"properties": {
1447+
"artifactId": {
1448+
"description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.",
1449+
"type": "string"
1450+
},
1451+
"groupId": {
1452+
"description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.",
1453+
"type": "string"
1454+
},
1455+
"path": {
1456+
"description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
1457+
"type": "string"
1458+
},
1459+
"repository": {
1460+
"description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.",
1461+
"type": "string"
1462+
},
1463+
"version": {
1464+
"description": "Maven `version` value used when uploading the artifact to Artifact Registry.",
1465+
"type": "string"
1466+
}
1467+
},
1468+
"type": "object"
1469+
},
14291470
"Network": {
14301471
"description": "Network describes the GCP network used to create workers in.",
14311472
"id": "Network",
@@ -1669,6 +1710,24 @@
16691710
},
16701711
"type": "object"
16711712
},
1713+
"PythonPackage": {
1714+
"description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.",
1715+
"id": "PythonPackage",
1716+
"properties": {
1717+
"paths": {
1718+
"description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.",
1719+
"items": {
1720+
"type": "string"
1721+
},
1722+
"type": "array"
1723+
},
1724+
"repository": {
1725+
"description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.",
1726+
"type": "string"
1727+
}
1728+
},
1729+
"type": "object"
1730+
},
16721731
"RepoSource": {
16731732
"description": "Location of the source in a Google Cloud Source Repository.",
16741733
"id": "RepoSource",
@@ -1745,10 +1804,24 @@
17451804
},
17461805
"type": "array"
17471806
},
1807+
"mavenArtifacts": {
1808+
"description": "Maven artifacts uploaded to Artifact Registry at the end of the build.",
1809+
"items": {
1810+
"$ref": "UploadedMavenArtifact"
1811+
},
1812+
"type": "array"
1813+
},
17481814
"numArtifacts": {
17491815
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
17501816
"format": "int64",
17511817
"type": "string"
1818+
},
1819+
"pythonPackages": {
1820+
"description": "Python artifacts uploaded to Artifact Registry at the end of the build.",
1821+
"items": {
1822+
"$ref": "UploadedPythonPackage"
1823+
},
1824+
"type": "array"
17521825
}
17531826
},
17541827
"type": "object"
@@ -2111,6 +2184,46 @@
21112184
},
21122185
"type": "object"
21132186
},
2187+
"UploadedMavenArtifact": {
2188+
"description": "A Maven artifact uploaded using the MavenArtifact directive.",
2189+
"id": "UploadedMavenArtifact",
2190+
"properties": {
2191+
"fileHashes": {
2192+
"$ref": "FileHashes",
2193+
"description": "Hash types and values of the Maven Artifact."
2194+
},
2195+
"pushTiming": {
2196+
"$ref": "TimeSpan",
2197+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2198+
"readOnly": true
2199+
},
2200+
"uri": {
2201+
"description": "URI of the uploaded artifact.",
2202+
"type": "string"
2203+
}
2204+
},
2205+
"type": "object"
2206+
},
2207+
"UploadedPythonPackage": {
2208+
"description": "Artifact uploaded using the PythonPackage directive.",
2209+
"id": "UploadedPythonPackage",
2210+
"properties": {
2211+
"fileHashes": {
2212+
"$ref": "FileHashes",
2213+
"description": "Hash types and values of the Python Artifact."
2214+
},
2215+
"pushTiming": {
2216+
"$ref": "TimeSpan",
2217+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2218+
"readOnly": true
2219+
},
2220+
"uri": {
2221+
"description": "URI of the uploaded artifact.",
2222+
"type": "string"
2223+
}
2224+
},
2225+
"type": "object"
2226+
},
21142227
"Volume": {
21152228
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
21162229
"id": "Volume",

‎googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json

+114-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
}
318318
}
319319
},
320-
"revision": "20220916",
320+
"revision": "20220928",
321321
"rootUrl": "https://cloudbuild.googleapis.com/",
322322
"schemas": {
323323
"ApprovalConfig": {
@@ -423,9 +423,23 @@
423423
},
424424
"type": "array"
425425
},
426+
"mavenArtifacts": {
427+
"description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.",
428+
"items": {
429+
"$ref": "MavenArtifact"
430+
},
431+
"type": "array"
432+
},
426433
"objects": {
427434
"$ref": "ArtifactObjects",
428435
"description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE."
436+
},
437+
"pythonPackages": {
438+
"description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.",
439+
"items": {
440+
"$ref": "PythonPackage"
441+
},
442+
"type": "array"
429443
}
430444
},
431445
"type": "object"
@@ -1437,6 +1451,33 @@
14371451
},
14381452
"type": "object"
14391453
},
1454+
"MavenArtifact": {
1455+
"description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.",
1456+
"id": "MavenArtifact",
1457+
"properties": {
1458+
"artifactId": {
1459+
"description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.",
1460+
"type": "string"
1461+
},
1462+
"groupId": {
1463+
"description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.",
1464+
"type": "string"
1465+
},
1466+
"path": {
1467+
"description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
1468+
"type": "string"
1469+
},
1470+
"repository": {
1471+
"description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.",
1472+
"type": "string"
1473+
},
1474+
"version": {
1475+
"description": "Maven `version` value used when uploading the artifact to Artifact Registry.",
1476+
"type": "string"
1477+
}
1478+
},
1479+
"type": "object"
1480+
},
14401481
"NetworkConfig": {
14411482
"description": "Network describes the network configuration for a `WorkerPool`.",
14421483
"id": "NetworkConfig",
@@ -1672,6 +1713,24 @@
16721713
},
16731714
"type": "object"
16741715
},
1716+
"PythonPackage": {
1717+
"description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.",
1718+
"id": "PythonPackage",
1719+
"properties": {
1720+
"paths": {
1721+
"description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.",
1722+
"items": {
1723+
"type": "string"
1724+
},
1725+
"type": "array"
1726+
},
1727+
"repository": {
1728+
"description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.",
1729+
"type": "string"
1730+
}
1731+
},
1732+
"type": "object"
1733+
},
16751734
"RepoSource": {
16761735
"description": "Location of the source in a Google Cloud Source Repository.",
16771736
"id": "RepoSource",
@@ -1748,10 +1807,24 @@
17481807
},
17491808
"type": "array"
17501809
},
1810+
"mavenArtifacts": {
1811+
"description": "Maven artifacts uploaded to Artifact Registry at the end of the build.",
1812+
"items": {
1813+
"$ref": "UploadedMavenArtifact"
1814+
},
1815+
"type": "array"
1816+
},
17511817
"numArtifacts": {
17521818
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
17531819
"format": "int64",
17541820
"type": "string"
1821+
},
1822+
"pythonPackages": {
1823+
"description": "Python artifacts uploaded to Artifact Registry at the end of the build.",
1824+
"items": {
1825+
"$ref": "UploadedPythonPackage"
1826+
},
1827+
"type": "array"
17551828
}
17561829
},
17571830
"type": "object"
@@ -2114,6 +2187,46 @@
21142187
},
21152188
"type": "object"
21162189
},
2190+
"UploadedMavenArtifact": {
2191+
"description": "A Maven artifact uploaded using the MavenArtifact directive.",
2192+
"id": "UploadedMavenArtifact",
2193+
"properties": {
2194+
"fileHashes": {
2195+
"$ref": "FileHashes",
2196+
"description": "Hash types and values of the Maven Artifact."
2197+
},
2198+
"pushTiming": {
2199+
"$ref": "TimeSpan",
2200+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2201+
"readOnly": true
2202+
},
2203+
"uri": {
2204+
"description": "URI of the uploaded artifact.",
2205+
"type": "string"
2206+
}
2207+
},
2208+
"type": "object"
2209+
},
2210+
"UploadedPythonPackage": {
2211+
"description": "Artifact uploaded using the PythonPackage directive.",
2212+
"id": "UploadedPythonPackage",
2213+
"properties": {
2214+
"fileHashes": {
2215+
"$ref": "FileHashes",
2216+
"description": "Hash types and values of the Python Artifact."
2217+
},
2218+
"pushTiming": {
2219+
"$ref": "TimeSpan",
2220+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2221+
"readOnly": true
2222+
},
2223+
"uri": {
2224+
"description": "URI of the uploaded artifact.",
2225+
"type": "string"
2226+
}
2227+
},
2228+
"type": "object"
2229+
},
21172230
"Volume": {
21182231
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
21192232
"id": "Volume",

‎googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json

+114-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
}
323323
}
324324
},
325-
"revision": "20220916",
325+
"revision": "20220928",
326326
"rootUrl": "https://cloudbuild.googleapis.com/",
327327
"schemas": {
328328
"ApprovalConfig": {
@@ -428,9 +428,23 @@
428428
},
429429
"type": "array"
430430
},
431+
"mavenArtifacts": {
432+
"description": "A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.",
433+
"items": {
434+
"$ref": "MavenArtifact"
435+
},
436+
"type": "array"
437+
},
431438
"objects": {
432439
"$ref": "ArtifactObjects",
433440
"description": "A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results field. If any objects fail to be pushed, the build is marked FAILURE."
441+
},
442+
"pythonPackages": {
443+
"description": "A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the upload. If any objects fail to be pushed, the build is marked FAILURE.",
444+
"items": {
445+
"$ref": "PythonPackage"
446+
},
447+
"type": "array"
434448
}
435449
},
436450
"type": "object"
@@ -1442,6 +1456,33 @@
14421456
},
14431457
"type": "object"
14441458
},
1459+
"MavenArtifact": {
1460+
"description": "A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.",
1461+
"id": "MavenArtifact",
1462+
"properties": {
1463+
"artifactId": {
1464+
"description": "Maven `artifactId` value used when uploading the artifact to Artifact Registry.",
1465+
"type": "string"
1466+
},
1467+
"groupId": {
1468+
"description": "Maven `groupId` value used when uploading the artifact to Artifact Registry.",
1469+
"type": "string"
1470+
},
1471+
"path": {
1472+
"description": "Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.",
1473+
"type": "string"
1474+
},
1475+
"repository": {
1476+
"description": "Artifact Registry repository, in the form \"https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY\" Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.",
1477+
"type": "string"
1478+
},
1479+
"version": {
1480+
"description": "Maven `version` value used when uploading the artifact to Artifact Registry.",
1481+
"type": "string"
1482+
}
1483+
},
1484+
"type": "object"
1485+
},
14451486
"NetworkConfig": {
14461487
"description": "Network describes the network configuration for a `WorkerPool`.",
14471488
"id": "NetworkConfig",
@@ -1677,6 +1718,24 @@
16771718
},
16781719
"type": "object"
16791720
},
1721+
"PythonPackage": {
1722+
"description": "Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.",
1723+
"id": "PythonPackage",
1724+
"properties": {
1725+
"paths": {
1726+
"description": "Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file.",
1727+
"items": {
1728+
"type": "string"
1729+
},
1730+
"type": "array"
1731+
},
1732+
"repository": {
1733+
"description": "Artifact Registry repository, in the form \"https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY\" Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.",
1734+
"type": "string"
1735+
}
1736+
},
1737+
"type": "object"
1738+
},
16801739
"RepoSource": {
16811740
"description": "Location of the source in a Google Cloud Source Repository.",
16821741
"id": "RepoSource",
@@ -1753,10 +1812,24 @@
17531812
},
17541813
"type": "array"
17551814
},
1815+
"mavenArtifacts": {
1816+
"description": "Maven artifacts uploaded to Artifact Registry at the end of the build.",
1817+
"items": {
1818+
"$ref": "UploadedMavenArtifact"
1819+
},
1820+
"type": "array"
1821+
},
17561822
"numArtifacts": {
17571823
"description": "Number of artifacts uploaded. Only populated when artifacts are uploaded.",
17581824
"format": "int64",
17591825
"type": "string"
1826+
},
1827+
"pythonPackages": {
1828+
"description": "Python artifacts uploaded to Artifact Registry at the end of the build.",
1829+
"items": {
1830+
"$ref": "UploadedPythonPackage"
1831+
},
1832+
"type": "array"
17601833
}
17611834
},
17621835
"type": "object"
@@ -2119,6 +2192,46 @@
21192192
},
21202193
"type": "object"
21212194
},
2195+
"UploadedMavenArtifact": {
2196+
"description": "A Maven artifact uploaded using the MavenArtifact directive.",
2197+
"id": "UploadedMavenArtifact",
2198+
"properties": {
2199+
"fileHashes": {
2200+
"$ref": "FileHashes",
2201+
"description": "Hash types and values of the Maven Artifact."
2202+
},
2203+
"pushTiming": {
2204+
"$ref": "TimeSpan",
2205+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2206+
"readOnly": true
2207+
},
2208+
"uri": {
2209+
"description": "URI of the uploaded artifact.",
2210+
"type": "string"
2211+
}
2212+
},
2213+
"type": "object"
2214+
},
2215+
"UploadedPythonPackage": {
2216+
"description": "Artifact uploaded using the PythonPackage directive.",
2217+
"id": "UploadedPythonPackage",
2218+
"properties": {
2219+
"fileHashes": {
2220+
"$ref": "FileHashes",
2221+
"description": "Hash types and values of the Python Artifact."
2222+
},
2223+
"pushTiming": {
2224+
"$ref": "TimeSpan",
2225+
"description": "Output only. Stores timing information for pushing the specified artifact.",
2226+
"readOnly": true
2227+
},
2228+
"uri": {
2229+
"description": "URI of the uploaded artifact.",
2230+
"type": "string"
2231+
}
2232+
},
2233+
"type": "object"
2234+
},
21222235
"Volume": {
21232236
"description": "Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.",
21242237
"id": "Volume",

0 commit comments

Comments
 (0)
Please sign in to comment.