| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ services: | |||
| 4 | 4 | language: python | |
| 5 | 5 | python: 2.7 | |
| 6 | 6 | env: | |
| 7 | - - TOX_ENV=py_func_v4 | ||
| 7 | + #- TOX_ENV=py_func_v4 | ||
| 8 | 8 | - TOX_ENV=cli_func_v4 | |
| 9 | 9 | install: | |
| 10 | 10 | - pip install tox | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4262,10 +4262,18 @@ def transfer_project(self, to_namespace, **kwargs): | |||
| 4262 | 4262 | path, post_data={"namespace": to_namespace}, **kwargs | |
| 4263 | 4263 | ) | |
| 4264 | 4264 | ||
| 4265 | - | ||
| 4266 | 4265 | @cli.register_custom_action("Project", ("ref_name", "artifact_path", "job")) | |
| 4267 | 4266 | @exc.on_http_error(exc.GitlabGetError) | |
| 4268 | - def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, chunk_size=1024, **kwargs): | ||
| 4267 | + def artifact( | ||
| 4268 | + self, | ||
| 4269 | + ref_name, | ||
| 4270 | + artifact_path, | ||
| 4271 | + job, | ||
| 4272 | + streamed=False, | ||
| 4273 | + action=None, | ||
| 4274 | + chunk_size=1024, | ||
| 4275 | + **kwargs | ||
| 4276 | + ): | ||
| 4269 | 4277 | """Download a single artifact file from a specific tag or branch from within the job’s artifacts archive. | |
| 4270 | 4278 | ||
| 4271 | 4279 | Args: | |
@@ -4288,7 +4296,12 @@ def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, ch | |||
| 4288 | 4296 | str: The artifacts if `streamed` is False, None otherwise. | |
| 4289 | 4297 | """ | |
| 4290 | 4298 | ||
| 4291 | - path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (self.get_id(), ref_name, artifact_path, job) | ||
| 4299 | + path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % ( | ||
| 4300 | + self.get_id(), | ||
| 4301 | + ref_name, | ||
| 4302 | + artifact_path, | ||
| 4303 | + job, | ||
| 4304 | + ) | ||
| 4292 | 4305 | result = self.manager.gitlab.http_get( | |
| 4293 | 4306 | path, streamed=streamed, raw=True, **kwargs | |
| 4294 | 4307 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments