Jenkins console output not in realtime

0 votes
When I run job (Build) on Jenkins I am triggering ruby command to execute my test script.

Problem is Jenkins is not displaying output in real time from console. Here is trigger log.

Building in workspace /var/lib/jenkins/workspace/foo_bar

No emails were triggered.

[foo_bar] $ /bin/sh -xe /tmp/hudson4042436272524123595.sh

+ ruby /var/lib/jenkins/test-script.rb
Aug 7, 2018 in Jenkins by lina
• 8,160 points
1,210 views

1 answer to this question.

0 votes
Make sure your script is flushing it stdout, stderr.

import sys

sys.stdout.flush()
answered Aug 7, 2018 by Nilesh
• 6,920 points

Related Questions In Jenkins

0 votes
1 answer

gulp serve & not working in jenkins

Try using nohup. It will creates nohup.out ...READ MORE

answered May 11, 2018 in Jenkins by DareDev
• 6,810 points
166 views
0 votes
2 answers

Subversion (SVNKIT) not working in Jenkins

Jenkins doesn't use the installed Subversion command ...READ MORE

answered Aug 8, 2018 in Jenkins by Kalgi
• 45,780 points
333 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
367 views
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,810 points
309 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
242 views
0 votes
1 answer
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 6,920 points
1,874 views
0 votes
1 answer

HTML in job descriptions on jenkins

Follow these steps: Step 1- go to manage ...READ MORE

answered Aug 7, 2018 in Jenkins by Nilesh
• 6,920 points
1,421 views