diff --git a/.github/azure-client-tools-bot/config.yml b/.github/azure-client-tools-bot/config.yml index f5846b6c3fd..feb11cc9ab7 100644 --- a/.github/azure-client-tools-bot/config.yml +++ b/.github/azure-client-tools-bot/config.yml @@ -7,7 +7,7 @@ pull_request: comment: - azure_pipeline: allow_list: - - "Azure.azure-cli Full Test" + - "wangzelin007.azure-cli Full Test" result_path: "/test_results/" group_by_keys: - "TestName" @@ -22,7 +22,7 @@ pull_request: disable_check_suit: true - azure_pipeline: allow_list: - - "Azure.azure-cli Breaking Change Test" + - "wangzelin007.azure-cli Breaking Change Test" result_path: "/breaking_change_test/" group_by_keys: - "TestName" diff --git a/scripts/ci/breaking_change_test.json b/scripts/ci/breaking_change_test.json new file mode 100644 index 00000000000..0ab7c4f8014 --- /dev/null +++ b/scripts/ci/breaking_change_test.json @@ -0,0 +1,17 @@ +{ + "breaking_change_test": { + "Details": [ + { + "TestName": "AzureCLI-BreakingChangeTest", + "Details": [ + { + "Module": "Non Breaking Changes", + "Status": "Succeeded", + "Content": "" + } + ] + } + ] + }, + "pull_request_number": "8" +} \ No newline at end of file diff --git a/scripts/ci/breaking_change_test2.py b/scripts/ci/breaking_change_test2.py new file mode 100644 index 00000000000..cd6d70187e9 --- /dev/null +++ b/scripts/ci/breaking_change_test2.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os + +azdev_test_result_dir = os.path.expanduser("~/.azdev/env_config/mnt/vss/_work/1/s/env") + + +def save_pipeline_result(): + # save pipeline result to file + # /mnt/vss/.azdev/env_config/mnt/vss/_work/1/s/env/breaking_change_test.json + filename = os.path.join(azdev_test_result_dir, f'breaking_change_test.json') + from shutil import copyfile + copyfile('./scripts/ci/breaking_change_test.json', filename) + + +def main(): + save_pipeline_result() + + +if __name__ == '__main__': + main() \ No newline at end of file