@cli.register_custom_action('<STR_LIT>', ('<STR_LIT>', '<STR_LIT>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabCreateError)<EOL>def trigger_pipeline(self, ref, token, variables={}, **kwargs):<DEDENT>
path = '<STR_LIT>' % self.get_id()<EOL>post_data = {'<STR_LIT>': ref, '<STR_LIT>': token, '<STR_LIT>': variables}<EOL>attrs = self.manager.gitlab.http_post(<EOL>path, post_data=post_data, **kwargs)<EOL>return ProjectPipeline(self.pipelines, attrs)<EOL>
Trigger a CI build.

        See https://gitlab.com/help/ci/triggers/README.md#trigger-a-build

        Args:
            ref (str): Commit to build; can be a branch name or a tag
            token (str): The trigger token
            variables (dict): Variables passed to the build script
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabCreateError: If the server failed to perform the request