New Reply

Hello,

In the end of a deployment, I need to retrieve an html-report generated by gauge. In this report I have an index.html which uses files in different folder like css, fonts, images, js and spec (everything is in the folder html-report).

I tried the module called "Capture Report from file" just to see the result and it works. But like I said before, I need to retrieve my whole folder and when I try to capture all HTML files from a directory, I have an error. Can you help me ?

Unhandled exception: System.NotSupportedException: The SshAgent agent does not support the IRemoteMethodExecuter interface.
at Inedo.Extensibility.Agents.Agent.GetServiceTService
at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<GetReportBase64Async>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<ExecuteAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.BuildMasterExecuter.<ExecuteActionAsync>d__44.MoveNext()

Product: BuildMaster
Version: 6.1.6

Hi Simon,

I need a bit more information. Can you send the portion of your OtterScript plan that is causing the exception? (You can obfuscate any sensitive urls).. My initial thought is that the remote server has directory browsing disabled.. But we can look further into this.

Thanks,
Jason

This is my buildmaster plan:

##AH:UseTextMode

Capture-HtmlDirectoryReport
(
FromDirectory: /tmp/buildmaster/html-report,
Index: index.html,
Name: GaugeReport
);

And this all the log output:

INFO: Capturing "GaugeReport" report into current build...
DEBUG: Using SshAgent agent on server-A
DEBUG: Attaching report from files in directory: /tmp/buildmaster/html-report
ERROR: Unhandled exception: System.NotSupportedException: The SshAgent agent does not support the IRemoteMethodExecuter interface.
at Inedo.Extensibility.Agents.Agent.GetServiceTService
at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<GetReportBase64Async>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.BuildMaster.Extensibility.Operations.Reporting.ReportFromDirectoryOperation.<ExecuteAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.BuildMasterExecuter.<ExecuteActionAsync>d__44.MoveNext()
DEBUG: Cleaning up...
DEBUG: Deleting /tmp/buildmaster/_E2077 on server-A...
DEBUG: /tmp/buildmaster/_E2077 on server-A deleted.
DEBUG: Cleanup complete.

Hi Simon,

Thank you for this information, I am going to try and replicate this issue and see where to go from there.

Thanks,
Jason

Hi Simon,

I am unable to recreate this issue. Please check to make sure the path exists at run-time and that the buildmaster agent has permissions to it. You can try to test this with a different path like c:\Buildmaster\rpt\

Answer Details

Preview:

Post Reply