Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Xuehao <[email protected]>
  • Loading branch information
XuehaoSun committed Jul 2, 2024
1 parent 454bea2 commit a0231b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .azure-pipelines/scripts/models/generate_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def generate(rendered_template):

def main():
path = "{}/templates/".format(os.path.dirname(__file__))
BUILD_BUILDID = os.getenv("BUILD_BUILDID")

loader = FileSystemLoader(path)
env = Environment(loader=loader)
Expand All @@ -84,10 +85,10 @@ def main():
last_data = get_data(args.last_json_path)
data = add_accuracy_ratio(data, last_data)
info = {
"url": f"https://dev.azure.com/lpot-inc/onnx-neural-compressor/_build/results?buildId={os.getenv("BUILD_BUILDID")}",
"url": f"https://dev.azure.com/lpot-inc/onnx-neural-compressor/_build/results?buildId={BUILD_BUILDID}",
"branch": os.getenv("SYSTEM_PULLREQUEST_SOURCEBRANCH"),
"commit": os.getenv("BUILD_SOURCEVERSION"),
"build_number": os.getenv("BUILD_BUILDID"),
"build_number": BUILD_BUILDID,
}

rendered_template = template.render(data=data, info=info)
Expand Down

0 comments on commit a0231b6

Please sign in to comment.