release pipeline log output for bash scripts are displayed delayed

%3CLINGO-SUB%20id%3D%22lingo-sub-2925892%22%20slang%3D%22en-US%22%3Erelease%20pipeline%20log%20output%20for%20bash%20scripts%20are%20displayed%20delayed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2925892%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20release%20pipelines%20I'm%20using%20bash%20script%20steps.%20When%20the%20release%20pipeline%20is%20running%20the%20console%20output%20logs%20are%20first%20displayed%20when%20the%20job%20is%20completely%20done.%20For%20longer%20running%20scripts%20and%20troubleshooting%20scenarios%20it%20would%20be%20great%20to%20have%20a%20kind%20of%20tail%20which%20outputs%20the%20logs%20more%20realtime.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eexample%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-yaml%22%3E%3CCODE%3Esteps%3A%0A-%20bash%3A%20%7C%0A%20%20%20echo%20hello%0A%20%20%20sleep%2060%0A%20%20%20%0A%20%20%20echo%20hello1%0A%20%20%20sleep%2060%0A%20%20%20%0A%20%20%20echo%20hello2%0A%20%20%20sleep%2060%0A%20%20%20%0A%20%20%20echo%20hello3%0A%20%20%20sleep%2060%0A%20%20%20%0A%20%20%20echo%20hello4%0A%20%20%20sleep%2060%0A%20%20displayName%3A%20'Bash%20Script'%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20this%20step%20is%20running%20there%20is%20no%20output%20for%205%20minutes.%20Is%20there%20a%20possibility%20improve%20this%20situation%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eusing%20vsts-agent%20v2.194.0%20on%20onprem%20ubuntu18.04%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebest%20regards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndreas%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi all,

 

In my release pipelines I'm using bash script steps. When the release pipeline is running the console output logs are first displayed when the job is completely done. For longer running scripts and troubleshooting scenarios it would be great to have a kind of tail which outputs the logs more realtime.

 

example:

 

steps:
- bash: |
   echo hello
   sleep 60
   
   echo hello1
   sleep 60
   
   echo hello2
   sleep 60
   
   echo hello3
   sleep 60
   
   echo hello4
   sleep 60
  displayName: 'Bash Script'

 

While this step is running there is no output for 5 minutes. Is there a possibility improve this situation?

 

using vsts-agent v2.194.0 on onprem ubuntu18.04

 

best regards,

 

Andreas

0 Replies