<p>If you really want to, you can use</p>
<pre><code>${BUILD_URL}/consoleText
</code></pre>
<p>or even better</p>
<pre><code>$JENKINS_HOME/jobs/$JOB_NAME/builds/lastSuccessfulBuild/log
</code></pre>
<p>there is the log of the last successful build, the others are:</p>
<pre><code>lastCompletedBuild
lastFailedBuild
lastStableBuild
lastUnstableBuild
lastUnsuccessfulBuild
</code></pre>

CC BY-SA 4.0
2021-06-30T11:36:35.787Z
2021-06-30T11:36:35.787Z
David
<p>Lets say we have Jobs A , B , C ,D and E.
Job A triggers Job B ;
Job B triggers Job C;
Job C triggers Job D;,
Job D triggers Job E;</p>
<p>When one of the child job fails for example: Job c fails then email should be sent to recipients of Job A ,Job B and Job c along with console output of A and changeLog ; Console output of Job B and changeLog and Console Output of Job C and changeLog all these info should be sent.!</p>
<p>Is there any way to do this ?
Need to use groovy script or how?</p>

CC BY-SA 4.0
2021-05-30T21:48:11.407Z
Sounds like you should just convert to a pipeline job.
Ian W
<jenkins><continuous-integration><jenkins-pipeline><jenkinsfile><pipeline>
How to get ConsoleFull Output,changeLog of upstream job along with downstream jobs console full output and changeLog in jenkins pipeline jobs!
suman
# How to get ConsoleFull Output,changeLog of upstream job along with downstream jobs console full output and changeLog in jenkins pipeline jobs!

(Asked by: username_0 on 2021-05-28)

Lets say we have Jobs A , B , C ,D and E.
Job A triggers Job B ;
Job B triggers Job C;
Job C triggers Job D;,
Job D triggers Job E;

When one of the child job fails for example: Job c fails then email should be sent to recipients of Job A ,Job B and Job c along with console output of A and changeLog ; Console output of Job B and changeLog and Console Output of Job C and changeLog all these info should be sent.!

Is there any way to do this ?
Need to use groovy script or how?

**Tags:** jenkins, continuous-integration, jenkins-pipeline, jenkinsfile, pipeline

> **Comments:**
> **username_1**: Sounds like you should just convert to a pipeline job.  

---

## 1 answers

### Answer by username_2 on 2021-06-30. Score: 0

If you really want to, you can use
${BUILD_URL}/consoleText

or even better
$JENKINS_HOME/jobs/$JOB_NAME/builds/lastSuccessfulBuild/log

there is the log of the last successful build, the others are:
lastCompletedBuild
lastFailedBuild
lastStableBuild
lastUnstableBuild
lastUnsuccessfulBuild


---

