bitbucket-pipeline-runner 0.5.0.dev1__tar.gz → 0.5.0.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/PKG-INFO +1 -1
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/cli.py +10 -1
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/context.py +1 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/runner.py +3 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pyproject.toml +1 -1
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/LICENSE +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/README.md +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/__init__.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/__main__.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/artifacts.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/cache.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/config.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/container.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/errors.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/models.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/oidc.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/parse.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/py.typed +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/repository.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/service.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/static/__init__.py +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/static/known_hosts +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/static/runit.sh +0 -0
- {bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/utils.py +0 -0
{bitbucket_pipeline_runner-0.5.0.dev1 → bitbucket_pipeline_runner-0.5.0.dev2}/pipeline_runner/cli.py
RENAMED
|
@@ -79,6 +79,12 @@ def main(ctx: click.Context, *, show_version: bool) -> None:
|
|
|
79
79
|
multiple=True,
|
|
80
80
|
help="Steps to run. If none are specified, they will all be run. Can be specified multiple times.",
|
|
81
81
|
)
|
|
82
|
+
@click.option(
|
|
83
|
+
"--stage",
|
|
84
|
+
"stages",
|
|
85
|
+
multiple=True,
|
|
86
|
+
help="Stages to run. If none are specified, they will all be run. Can be specified multiple times.",
|
|
87
|
+
)
|
|
82
88
|
@click.option(
|
|
83
89
|
"-e",
|
|
84
90
|
"--env-file",
|
|
@@ -113,6 +119,7 @@ def run(
|
|
|
113
119
|
pipeline: str | None,
|
|
114
120
|
repository_path: str,
|
|
115
121
|
steps: list[str],
|
|
122
|
+
stages: list[str],
|
|
116
123
|
env_files: list[str],
|
|
117
124
|
*,
|
|
118
125
|
color: bool,
|
|
@@ -143,7 +150,9 @@ def run(
|
|
|
143
150
|
logger.error("pipeline not specified")
|
|
144
151
|
sys.exit(2)
|
|
145
152
|
|
|
146
|
-
req = PipelineRunRequest(
|
|
153
|
+
req = PipelineRunRequest(
|
|
154
|
+
pipeline, repository_path=repository_path, selected_steps=steps, selected_stages=stages, env_files=env_files
|
|
155
|
+
)
|
|
147
156
|
|
|
148
157
|
runner = PipelineRunner(req)
|
|
149
158
|
try:
|
|
@@ -38,12 +38,15 @@ class PipelineRunRequest:
|
|
|
38
38
|
def __init__(
|
|
39
39
|
self,
|
|
40
40
|
pipeline_name: str,
|
|
41
|
+
*,
|
|
41
42
|
repository_path: str | None = None,
|
|
42
43
|
selected_steps: list[str] | None = None,
|
|
44
|
+
selected_stages: list[str] | None = None,
|
|
43
45
|
env_files: list[str] | None = None,
|
|
44
46
|
) -> None:
|
|
45
47
|
self.pipeline_name = pipeline_name
|
|
46
48
|
self.selected_steps = selected_steps or []
|
|
49
|
+
self.selected_stages = selected_stages or []
|
|
47
50
|
self.env_files = env_files or []
|
|
48
51
|
self.repository_path = os.path.abspath(repository_path or ".")
|
|
49
52
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|