VSTS扩展构建摘要部分错误 [英] VSTS Extension build summary section error

查看:70
本文介绍了VSTS扩展构建摘要部分错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已在"构建摘要"中添加了自定义摘要部分。通过VSTS扩展部分。

I have added a custom summary section to "Build Summary" section through a VSTS extension.



我在构建完成时在VSTS构建摘要部分中遇到以下错误。

I'm getting following error in VSTS Build summary section on build completion.


" ABC的VSTS扩展无法加载。了解更多关于此扩展,包括可用的支持选项。"

"VSTS Extension by ABC failed to load.Learn More about this extension, including available support options."


贡献:

        "id": "abcfef-build-status-section",
        "type": "ms.vss-build-web.build-results-section",
        "description": "ABC Scan Summary",
        "targets": [
            ".build-info-tab",
            "ms.vss-build-web.build-results-summary-tab"
        ],
        "properties": {
             "name": "ABC Summary Section",
             "uri": "buildstatus.html",
             "order": 20,
             "height": 500
        }



范围:

Scope:

    "scopes": [
  "vso.build",
  "vso.build_execute"
]



Html页面(buildstatus.html):

Html page (buildstatus.html):




 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <title>Hello World</title>
     <script src="scripts/VSS.SDK.js"></script>
 </head>
 <body>
     <script type="text/javascript">VSS.init();</script>
     <h1>Hello World</h1>
     <script type="text/javascript">VSS.notifyLoadSucceeded();</script>
 </body>
 </html>

推荐答案

感谢您在此处发帖。

我会请求您分享构建日志,以便有助于解决您的问题。

I would request you share the logs of the build so that it will be helpful to resolve your issue.

还可以通过以下链接获取更多信息:

Also go through the below link for more information:

https://github.com/Microsoft/vsts-extension-samples

https://github.com/Microsoft/vsts-extension-samples

问候,


这篇关于VSTS扩展构建摘要部分错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆