Search code examples
azure-devopstfs-2015azure-pipelines

VSTS Extension build summary section


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

I'm getting following error in VSTS Build summary section on build completion. enter image description here

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

Contribution:

        "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 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>

Please help to resolve this.

Thanks in advance.


Solution

  • I found the issue by analyzing console logs of Chrome browser. It seems my organization firewall is blocking the API call to retrieve resources. :)

    https://xxxxxxxx.gallery.vsassets.io/_apis/public/gallery/publisher/xxxxxxxxxxxxxxxxxxxxxxxx=/Extension/status.html Failed to load resource: net::ERR_CONNECTION_CLOSED

    Thanks-