Challenge - 5 Problems
Email Notification Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Jenkins Email Notification Plugin - Default Behavior
What is the output in Jenkins console log when the Email Notification plugin is configured but the SMTP server is unreachable during a build?
Attempts:
2 left
💡 Hint
Think about what happens when Jenkins tries to send email but cannot reach the SMTP server.
✗ Incorrect
When the SMTP server is unreachable, the Email Notification plugin logs a connection error like 'Could not connect to SMTP host' and the build fails.
❓ Configuration
intermediate2:00remaining
Configuring SMTP Server in Jenkins Email Notification Plugin
Which configuration snippet correctly sets the SMTP server to smtp.example.com with port 587 and enables STARTTLS in Jenkins Email Notification plugin's global configuration?
Attempts:
2 left
💡 Hint
STARTTLS usually runs on port 587 and requires useStartTls=true with useSsl=false.
✗ Incorrect
Port 587 with STARTTLS enabled (useStartTls=true) and SSL disabled (useSsl=false) is the correct setup for SMTP with STARTTLS.
🔀 Workflow
advanced2:00remaining
Email Notification Plugin - Conditional Email Sending
In a Jenkins pipeline, which scripted step correctly sends an email only if the build status is FAILURE using the Email Notification plugin?
Attempts:
2 left
💡 Hint
The correct property to check current build status is currentBuild.currentResult.
✗ Incorrect
In Jenkins scripted pipeline, currentBuild.currentResult holds the build status. Using it in the if condition correctly triggers email on failure.
❓ Troubleshoot
advanced2:00remaining
Diagnosing Email Notification Plugin Failure
A Jenkins job configured with Email Notification plugin does not send emails, but the build succeeds. Which log message indicates the root cause?
Attempts:
2 left
💡 Hint
If no email addresses are set, the plugin skips sending emails without failing the build.
✗ Incorrect
The warning 'No recipients specified for email notification' means the plugin has no target addresses, so it skips sending emails silently.
✅ Best Practice
expert2:00remaining
Best Practice for Securing SMTP Credentials in Jenkins Email Notification Plugin
What is the recommended way to securely manage SMTP credentials for the Jenkins Email Notification plugin to avoid exposing passwords in job configurations?
Attempts:
2 left
💡 Hint
Jenkins Credentials plugin is designed to securely store secrets.
✗ Incorrect
Using Jenkins Credentials plugin to store SMTP credentials keeps them encrypted and avoids exposing passwords in job configs or logs.