Unverified Commit 2e42e289 authored by Max Wittig's avatar Max Wittig 🌍 Committed by GitHub
Browse files

Merge pull request #830 from python-gitlab/chore/ci-disable-py-func

Chore/ci disable py func
parents 5492b71a 515aa9ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ services:
language: python
python: 2.7
env:
  - TOX_ENV=py_func_v4
  #- TOX_ENV=py_func_v4
  - TOX_ENV=cli_func_v4
install:
  - pip install tox
+16 −3
Original line number Diff line number Diff line
@@ -4262,10 +4262,18 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
            path, post_data={"namespace": to_namespace}, **kwargs
        )


    @cli.register_custom_action("Project", ("ref_name", "artifact_path", "job"))
    @exc.on_http_error(exc.GitlabGetError)
    def artifact(self, ref_name, artifact_path, job, streamed=False, action=None, chunk_size=1024, **kwargs):
    def artifact(
        self,
        ref_name,
        artifact_path,
        job,
        streamed=False,
        action=None,
        chunk_size=1024,
        **kwargs
    ):
        """Download a single artifact file from a specific tag or branch from within the job’s artifacts archive.

        Args:
@@ -4288,7 +4296,12 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
            str: The artifacts if `streamed` is False, None otherwise.
        """

        path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (self.get_id(), ref_name, artifact_path, job)
        path = "/projects/%s/jobs/artifacts/%s/raw/%s?job=%s" % (
            self.get_id(),
            ref_name,
            artifact_path,
            job,
        )
        result = self.manager.gitlab.http_get(
            path, streamed=streamed, raw=True, **kwargs
        )