Complete the code to create a new freestyle job named 'MyJob'.
job = Jenkins.createJob('[1]')
The job name must be 'MyJob' to match the requirement.
Complete the code to add a shell build step that echoes 'Hello World'.
job.addBuildStep(new Shell('[1]'))
The shell command must exactly echo 'Hello World' as a single string.
Fix the error in the code to set the job description to 'Sample Job'.
job.setDescription([1])The description must be a string literal, so it needs quotes.
Fill both blanks to configure the job to trigger on SCM changes and set the SCM URL.
job.setTriggers(new SCMTrigger('[1]')) job.setScm(new GitSCM('[2]'))
The trigger uses a cron syntax 'H/5 * * * *' to poll every 5 minutes, and the SCM URL must be the HTTPS GitHub repo URL.
Fill all three blanks to create a freestyle job with a description, a shell build step, and a post-build email notification.
job = Jenkins.createJob('[1]') job.setDescription('[2]') job.addBuildStep(new Shell('[3]')) job.addPublisher(new EmailNotifier('team@example.com'))
The job name is 'DeployApp', the description explains the job purpose, and the shell step echoes a deployment start message.