microsoft / vsts-azurevm-extension

MIT License
13 stars 6 forks source link

Grab agent configuration script log on linux #189

Closed simonasaitta closed 2 years ago

simonasaitta commented 3 years ago

Adding logic to grab standard output and standard error from pipeline script execution. The changes to the agent script should cover redirecting std error to std output to ensure the correct order of the messages. The std error is still being grabbed in case some redirecting was missed.

The previous version was also not checking for the script exit code and it's now fixed.

PR with changes to script for logging: https://dev.azure.com/mseng/AzureDevOps/_git/CIPlat.Externals/pullrequest/620960

ghost commented 3 years ago

CLA assistant check
All CLA requirements met.