@cli.register_custom_action('<STR_LIT>')<EOL><INDENT>@exc.on_http_error(exc.GitlabGetError)<EOL>def artifact(self, path, streamed=False, action=None, chunk_size=<NUM_LIT>,<EOL>**kwargs):<DEDENT>
path = '<STR_LIT>' % (self.manager.path, self.get_id(), path)<EOL>result = self.manager.gitlab.http_get(path, streamed=streamed,<EOL>raw=True, **kwargs)<EOL>return utils.response_content(result, streamed, action, chunk_size)<EOL>
Get a single artifact file from within the job's artifacts archive.

        Args:
            path (str): Path of the artifact
            streamed (bool): If True the data will be processed by chunks of
                `chunk_size` and each chunk is passed to `action` for
                treatment
            action (callable): Callable responsible of dealing with chunk of
                data
            chunk_size (int): Size of each chunk
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabGetError: If the artifacts could not be retrieved

        Returns:
            str: The artifacts if `streamed` is False, None otherwise.