Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

219
Vistas
Send command output as log in tfs build email

I have a build that running some npm tests with TFS 2017. I set an email notification for failed builds.

Developers asks to get more information about the npm test instead of just "npm failed with exit code 1" so I want to get the entire output as a log file attached to the email or parse the output and send it as the error message to the email notification.

I tried to modify the BuildCompletedEvent.xsl to get different value but I keep getting the uninformative npm failure message.

Does someone know of a way to send the entire command output to the email or something similar?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If the build log contain all of the npm tests output. You could use rest api or powershell script to catch the related build log. Detail steps please refer this question: Get zipped TFS 2015 (vNext) build output logs through powershell (just like the download link after the build)

Then just use some custom tasks to send mails with attachment in the build definition such as send email or email task. Or you could write the task to meet your own requirement, for how to please take a look at this blog: Sending Email Notification from VSTS/TFS Build

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda