Skip to content
Merged
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
6 changes: 4 additions & 2 deletions eng/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def sdk_automation_autorest(config: dict) -> List[dict]:

packages = []
breaking = False
changelog = ""
breaking_change_items = []
if "relatedReadmeMdFiles" not in config or not config["relatedReadmeMdFiles"]:
return packages

Expand Down Expand Up @@ -199,7 +201,7 @@ def sdk_automation_autorest(config: dict) -> List[dict]:
],
"readmeMd": [readme],
"artifacts": ["{0}/pom.xml".format(output_folder)]
+ [jar for jar in glob.glob("{0}/target/*.jar".format(output_folder))],
+ [jar for jar in glob.glob("{0}/target/*.jar".format(output_folder))] if succeeded else [],
"apiViewArtifact": next(iter(glob.glob("{0}/target/*-sources.jar".format(output_folder))), None),
"language": "Java",
"result": "succeeded" if succeeded else "failed",
Expand Down Expand Up @@ -296,7 +298,7 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
],
"typespecProject": [tsp_project],
"packageFolder": sdk_folder,
"artifacts": artifacts,
"artifacts": artifacts if succeeded else [],
"apiViewArtifact": next(iter(glob.glob("{0}/target/*-sources.jar".format(sdk_folder))), None),
"language": "Java",
"result": result,
Expand Down
4 changes: 2 additions & 2 deletions eng/automation/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
],
"typespecProject": [tsp_project],
"packageFolder": sdk_folder,
"artifacts": artifacts,
"artifacts": artifacts if succeeded else [],
"apiViewArtifact": next(iter(glob.glob("{0}/target/*-sources.jar".format(sdk_folder))), None),
"language": "Java",
"result": result,
Expand Down Expand Up @@ -286,7 +286,7 @@ def sdk_automation_readme(readme_file_abspath: str, packages: List[dict], sdk_ro
"eng/versioning",
"pom.xml",
],
"artifacts": artifacts,
"artifacts": artifacts if succeeded else [],
"apiViewArtifact": next(iter(glob.glob("{0}/target/*-sources.jar".format(generated_folder))), None),
"language": "Java",
"result": result,
Expand Down
Loading