Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42162

Jenkinsfile docker logs not returns as expected

XMLWordPrintable

      I have a jenkinsfile in which i run the docker container in detached mode in which tests are running. And then in the next stage i do docker logs --follow <conatiner name> in sh(BourneShellScript.java). Some of the tests takes a long time (around 1 hour) to complete so there would be no log for that time period.But after an hour when there are logs in container even then there is no logs in jenkins-log.txt which need to be copied. It run till the point where the long running tests starts.

      I did some logging enabled and it tells me that process is still alive, but then there is no new lines in jenkins-log.txt file

            Unassigned Unassigned
            thakurv vikas thakur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: