Skip to content

Commit f879fbf

Browse files
Add support for the input-variables step field in BitBucket pipelines (#956)
1 parent bd17aaf commit f879fbf

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

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

Lines changed: 8 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-07-29T10:34:16+00:00
3+
# timestamp: 2025-10-07T18:01:14+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
@@ -409,6 +409,13 @@ class StepBase(BaseModel):
409409
description="Stop the parent parallel group in case this step fails.",
410410
)
411411
image: Image | None = None
412+
input_variables: dict[str, str] | None = Field(
413+
default=None,
414+
alias="input-variables",
415+
description="Variables from the parent step that are provided to the child pipeline.",
416+
examples=[{"VAR_1": "VALUE_1", "VAR_2": "${BITBUCKET_BRANCH}"}],
417+
title="Input Variables",
418+
)
412419
max_time: MaxTime | None = Field(
413420
default=None, alias="max-time", title="Step Maximum Time"
414421
)

0 commit comments

Comments
 (0)