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

Copy console output of triggered job into console of current job

      I am asking for an option to directly copy (or kind of "tee") the console log of a triggered job into the console of the triggering job.

      I currently have two parameterizable jobs which are utilized as build steps (via "Trigger/call builds on other projects") in my "main" jobs (i.e. for building software artifacts and for transferring the binaries to a test target).

      Now I would like to have the console log of the triggered "helper" jobs displayed within the console of the triggering main jobs: The console log of the main job is being sent within an e-Mail in case of an unstable or failing build. If the main job fails because a triggered job is failing it would be very helpful to immediately see the console output of the triggered job within the e-Mail notification. But I can see other scenarios as well, where this would help us, e.g
      + For release builds we store the console log for archiving purposes. Having a complete all-in-one console log is more desirable than having three separate ones.
      + Sometimes we decide to keep builds (i.e. having them excluded from log rotation). Having the complete console log in those builds won't require us to also mark the corresponding helper jobs as "keep forever".

          [JENKINS-34726] Copy console output of triggered job into console of current job

          We use wget to copy the console output from the triggered job. It would be nice to just have an option to tick to either copy the entire subprojects console output either to a separate file or to the console.

          Flemming Steffensen added a comment - We use wget to copy the console output from the triggered job. It would be nice to just have an option to tick to either copy the entire subprojects console output either to a separate file or to the console.

          Md added a comment -

          huybrechts   It would be great if we could add something similar as "enhancedLogging" option that is available in Parameterized-Remote-Trigger plug-in

          ~~~~~~~~~~~~

          • enhancedLogging : boolean (optional)
            Enable Enhanced LoggingIf this option is enabled, the console output of the remote job is also logged.

           

          ~~~~~~~~~~~~

          Md added a comment - huybrechts    It would be great if we could add something similar as "enhancedLogging" option that is available in Parameterized-Remote-Trigger plug-in ~~~~~~~~~~~~ enhancedLogging : boolean  (optional) Enable Enhanced LoggingIf this option is enabled, the console output of the remote job is also logged.   ~~~~~~~~~~~~

            huybrechts huybrechts
            cober Christoph Obermair
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: