Which of the following best describes the purpose of post-build actions in a Jenkins job?
Think about what happens after the build finishes successfully or fails.
Post-build actions are tasks Jenkins performs after the build steps, like sending emails, archiving files, or triggering other jobs.
After configuring a Jenkins job to archive the file output.log as a post-build action, what will you see in the Jenkins job page after a successful build?
Archiving artifacts means saving files for later access from the build page.
Archiving artifacts stores specified files so users can download them from the build page after completion.
You want Jenkins to send an email notification only when a build fails. Which post-build action configuration achieves this?
Look for a post-build action that supports conditional triggers.
The 'Editable Email Notification' plugin allows setting triggers like 'Failure' to send emails only on failed builds.
A Jenkins job's post-build action to archive artifacts is not working; no files appear under 'Archived Artifacts' after a successful build. What is the most likely cause?
Check if the files you want to archive actually exist after the build.
If the file pattern does not match any files, Jenkins archives nothing, so no artifacts appear.
In a Jenkins Pipeline script, which is the best way to ensure a post-build action runs regardless of build success or failure?
Look for a pipeline syntax that guarantees execution after all stages.
The post { always { ... } } block runs its steps no matter if the build succeeded, failed, or was aborted.