tasks/pipeline.py
def follow(ctx, id=None, git_ref=None, here=False, project_name="DataDog/datadog-agent"):
    """
    Follow a pipeline's progress in the CLI.
    Use --here to follow the latest pipeline on your current branch.
    Use --git-ref to follow the latest pipeline on a given tag or branch.
    Use --id to follow a specific pipeline.
    Use --project-name to specify a repo other than DataDog/datadog-agent (default)

    Examples:
    inv pipeline.follow --git-ref my-branch
    inv pipeline.follow --here
    inv pipeline.follow --id 1234567
    """

    gitlab = Gitlab(project_name=project_name, api_token=get_gitlab_token())
    gitlab.test_project_found()

    if id is not None:
        wait_for_pipeline(gitlab, id)
    elif git_ref is not None:
        wait_for_pipeline_from_ref(gitlab, git_ref)
    elif here:
        git_ref = ctx.run("git rev-parse --abbrev-ref HEAD", hide=True).stdout.strip()
        wait_for_pipeline_from_ref(gitlab, git_ref)

    Follow a pipeline's progress in the CLI.
    Use --here to follow the latest pipeline on your current branch.
    Use --git-ref to follow the latest pipeline on a given tag or branch.
    Use --id to follow a specific pipeline.
    Use --project-name to specify a repo other than DataDog/datadog-agent (default)

    Examples:
    inv pipeline.follow --git-ref my-branch
    inv pipeline.follow --here
    inv pipeline.follow --id 1234567
    
Follow a pipeline's progress in the CLI.
Use --here to follow the latest pipeline on your current branch.
Use --git-ref to follow the latest pipeline on a given tag or branch.
Use --id to follow a specific pipeline.
Use --project-name to specify a repo other than DataDog/datadog-agent (default)
Follow a pipeline ' s progress in the CLI . Use -- here to follow the latest pipeline on your current branch . Use -- git - ref to follow the latest pipeline on a given tag or branch . Use -- id to follow a specific pipeline . Use -- project - name to specify a repo other than DataDog / datadog - agent ( default )
def follow(ctx, id=None, git_ref=None, here=False, project_name="DataDog/datadog-agent"):
    gitlab = Gitlab(project_name=project_name, api_token=get_gitlab_token())
    gitlab.test_project_found()
    if id is not None:
        wait_for_pipeline(gitlab, id)
    elif git_ref is not None:
        wait_for_pipeline_from_ref(gitlab, git_ref)
    elif here:
        git_ref = ctx.run("git rev-parse --abbrev-ref HEAD", hide=True).stdout.strip()
        wait_for_pipeline_from_ref(gitlab, git_ref)
def follow ( ctx , id = None , git_ref = None , here = False , project_name = "DataDog/datadog-agent" ) : gitlab = Gitlab ( project_name = project_name , api_token = get_gitlab_token ( ) ) gitlab . test_project_found ( ) if id is not None : wait_for_pipeline ( gitlab , id ) elif git_ref is not None : wait_for_pipeline_from_ref ( gitlab , git_ref ) elif here : git_ref = ctx . run ( "git rev-parse --abbrev-ref HEAD" , hide = True ) . stdout . strip ( ) wait_for_pipeline_from_ref ( gitlab , git_ref )
Follow a pipeline's progress in the CLI.
Follow a pipeline ' s progress in the CLI .
"""
    Follow a pipeline's progress in the CLI.
    Use --here to follow the latest pipeline on your current branch.
    Use --git-ref to follow the latest pipeline on a given tag or branch.
    Use --id to follow a specific pipeline.
    Use --project-name to specify a repo other than DataDog/datadog-agent (default)

    Examples:
    inv pipeline.follow --git-ref my-branch
    inv pipeline.follow --here
    inv pipeline.follow --id 1234567
    """
ctx
id
git_ref
here
project_name
examples
None