Challenge - 5 Problems
Freestyle Job Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Jenkins Freestyle Job: Build Trigger Output
You have a Jenkins freestyle job configured to run a shell command:
What will be the output in the Jenkins console log after the build runs?
echo Hello Jenkins
What will be the output in the Jenkins console log after the build runs?
Jenkins
echo Hello JenkinsAttempts:
2 left
💡 Hint
The shell command output is shown in the console log.
✗ Incorrect
The shell command 'echo Hello Jenkins' prints 'Hello Jenkins' to the console log of the build.
❓ Configuration
intermediate2:00remaining
Setting Build Triggers in Freestyle Job
Which option correctly configures a Jenkins freestyle job to trigger builds every 15 minutes using the built-in scheduler syntax?
Attempts:
2 left
💡 Hint
Jenkins uses 'H' to distribute load evenly.
✗ Incorrect
The 'H/15 * * * *' syntax triggers the job every 15 minutes with a hashed start time to avoid all jobs running simultaneously.
❓ Troubleshoot
advanced2:30remaining
Freestyle Job Fails to Archive Artifacts
A Jenkins freestyle job is configured to archive artifacts from the path 'build/output/*.jar'. After a successful build, no artifacts are archived. What is the most likely cause?
Attempts:
2 left
💡 Hint
Check if the files exist in the specified path after build.
✗ Incorrect
If no .jar files exist in 'build/output/', the archive step finds nothing to archive, resulting in no artifacts saved.
🔀 Workflow
advanced2:00remaining
Freestyle Job Post-build Actions Order
In a Jenkins freestyle job, you want to run a shell script after archiving artifacts and then send an email notification. Which order of post-build actions is correct?
Attempts:
2 left
💡 Hint
Archiving should happen before any post-build scripts that depend on artifacts.
✗ Incorrect
Artifacts must be archived first so they are available for any scripts or notifications that follow.
✅ Best Practice
expert3:00remaining
Securing Credentials in Freestyle Jobs
What is the best practice to securely use credentials in a Jenkins freestyle job without exposing them in the build logs?
Attempts:
2 left
💡 Hint
Jenkins has a plugin designed for managing secrets safely.
✗ Incorrect
Using the Credentials Plugin and injecting credentials as environment variables keeps secrets out of logs and source code.