How to View Build Console Output in Jenkins Quickly
To view build console output in Jenkins, open your Jenkins dashboard, click on the specific job, then select the build number you want to inspect. Click on the
Console Output link to see the detailed logs of that build.Syntax
The basic steps to view console output in Jenkins are:
- Navigate to Job: Go to the Jenkins dashboard and click the job name.
- Select Build: Click the build number (e.g., #15) you want to check.
- Console Output: Click the
Console Outputlink on the left menu to see the logs.
This shows the real-time or completed build logs.
jenkins
Jenkins Dashboard > Job Name > Build Number > Console Output
Example
This example shows how to access the console output for a build named MyApp-Build and build number #42.
text
1. Open Jenkins dashboard in your browser. 2. Click on <code>MyApp-Build</code> job. 3. Click on build number <code>#42</code> in the build history. 4. Click <code>Console Output</code> on the left menu. You will see the full log of the build process, including compilation, tests, and deployment steps.
Output
[Pipeline] Start of Pipeline
[Pipeline] echo
Building MyApp...
[Pipeline] sh
+ mvn clean install
[INFO] Scanning for projects...
[INFO] BUILD SUCCESS
[Pipeline] End of Pipeline
Common Pitfalls
Some common mistakes when trying to view console output include:
- Clicking on the job but not selecting a specific build number first.
- Expecting console output before the build starts or finishes; logs appear only after the build runs.
- Not having proper permissions to view the job or build logs.
- Using old Jenkins UI where the console output link might be labeled differently.
Always ensure you select the correct build and have access rights.
text
Wrong: - Jenkins Dashboard > Job Name > Console Output (no build selected) Right: - Jenkins Dashboard > Job Name > Build Number > Console Output
Quick Reference
Summary tips for viewing Jenkins build console output:
- Always select a specific build number before viewing logs.
- Use the
Console Outputlink on the left menu inside the build page. - Refresh the console output page to see live logs during a running build.
- Check user permissions if you cannot see the console output.
Key Takeaways
Access console output by selecting a specific build under the job in Jenkins.
Use the Console Output link to see detailed logs of the build process.
Ensure the build has run or is running to see logs; no logs appear before build start.
Check permissions if console output is not visible.
Refreshing the console output page shows live updates during build execution.