diff --git a/release-assistant/javcra/cli/commands/checkpart.py b/release-assistant/javcra/cli/commands/checkpart.py index 24745fa833a39575e2355667dfe73c9f76ad17e3..495895a85509ac8cbacf58a3d7d57f31ddca4c3f 100644 --- a/release-assistant/javcra/cli/commands/checkpart.py +++ b/release-assistant/javcra/cli/commands/checkpart.py @@ -87,6 +87,10 @@ class CheckCommand(BaseCommand): action="store", required=True, ) + self.sub_parse.add_argument("--buildcheck", + help="the option for build checking", + action="store_false", + ) @staticmethod def jenkins_server(params, paral_num, branch_name, release_date): @@ -442,7 +446,10 @@ class CheckCommand(BaseCommand): if not add_res: raise ValueError("failed to add repo in release issue.") print("[INFO] successful to add repo in release issue.") - + + if not params.buildcheck: + return + # self-build verification selfbuild_res = verify_selfbuild() self.create_comment("selfbuild jenkins res", selfbuild_res, issue)