Skip to content

Commit 28e967d

Browse files
Bump Bitbucket pipelines schema: Add support for concurrency groups and environments (#797)
See here for more information: https://www.atlassian.com/blog/bitbucket/evolving-deployments-in-bitbucket-pipelines-concurrency-groups-and-environments
1 parent 5948d42 commit 28e967d

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/usethis/_integrations/ci/bitbucket/schema.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: schema.json
3-
# timestamp: 2025-05-08T09:34:57+00:00
3+
# timestamp: 2025-06-24T21:03:56+00:00
44
# using the command:
55
# datamodel-codegen --input tests\usethis\_integrations\ci\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\ci\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.10
66
# ruff: noqa: ERA001
@@ -380,11 +380,23 @@ class StepBase(BaseModel):
380380
title="Step Caches",
381381
)
382382
clone: Clone | None = None
383+
concurrency_group: str | None = Field(
384+
default=None,
385+
alias="concurrency-group",
386+
description="The concurrency group for the step.",
387+
max_length=50,
388+
title="Concurrency group",
389+
)
383390
deployment: str | None = Field(
384391
default=None,
385392
description="The deployment environment for the step.",
386393
title="Step Deployment Environment",
387394
)
395+
environment: str | None = Field(
396+
default=None,
397+
description="The environment for the step.",
398+
title="Step Environment",
399+
)
388400
fail_fast: FailFast | None = Field(
389401
default=None,
390402
alias="fail-fast",
@@ -445,6 +457,11 @@ class Stage(BaseModel):
445457
description="The deployment environment for the stage.",
446458
title="Stage Deployment Environment",
447459
)
460+
environment: str | None = Field(
461+
default=None,
462+
description="The environment for the stage.",
463+
title="Stage Environment",
464+
)
448465
name: str | None = Field(
449466
default=None, description="The name of the stage.", title="Stage Name"
450467
)

0 commit comments

Comments
 (0)