Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestCodeCommitIssuesPR #1329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions azure-devops/azext_devops/dev/pipelines/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,6 @@ def build_list(definition_ids=None, branch=None, organization=None, project=None
requested_for=resolve_identity_as_id(requested_for, organization))
return builds


def build_cancel(build_id, open=False, organization=None, project=None, detect=None):
"""Cancels if build is running.
:param build_id: ID of the build.
:type build_id: int
:param open: Open the build results page in your web browser.
:type open: bool
:rtype: :class:`<Build> <v5_0.build.models.Build>`
"""
organization, project = resolve_instance_and_project(
detect=detect, organization=organization, project=project)
client = get_build_client(organization)
build = Build(status="Cancelling")
build = client.update_build(build=build, project=project, build_id=build_id)
if open:
_open_build(build, organization)
return build


def add_build_tags(build_id, tags, organization=None, project=None, detect=None):
"""Add tag(s) for a build.
:param build_id: ID of the build.
Expand Down
1 change: 0 additions & 1 deletion azure-devops/azext_devops/dev/pipelines/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def load_build_commands(self, _):
g.command('list', 'build_list', table_transformer=transform_builds_table_output)
g.command('queue', 'build_queue', table_transformer=transform_build_table_output)
g.show_command('show', 'build_show', table_transformer=transform_build_table_output)
g.command('cancel', 'build_cancel', table_transformer=transform_build_table_output)

with self.command_group('pipelines build tag', command_type=buildOps) as g:
# basic build tag commands
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/repos/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def load_code_arguments(self, _):
with self.argument_context('repos policy') as context:
context.argument('policy_configuration', options_list=('--policy-configuration', '--config'),
help='Local file path for configuration file. ' +
'Please use backslash(\) when typing in directory path. ')
'Please use backslash when typing in directory path.')
context.argument('policy_id', options_list=('--policy-id', '--id'),
help='ID of the policy.')
context.argument('repository_id', help='Id of the repository on which to apply the policy')
Expand Down
454 changes: 0 additions & 454 deletions tests/recordings/test_build_cancel.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions tests/test_pipelinesBuildCancelTest.py

This file was deleted.