Complete the code to specify the recipient email address in Jenkins email notification.
emailext( to: '[1]', subject: 'Build Notification', body: 'The build has completed.' )
The to field specifies the recipient email address. Here, build@company.com is the correct recipient.
Complete the code to set the email subject line in Jenkins email notification.
emailext( to: 'build@company.com', subject: '[1]', body: 'Build completed successfully.' )
The subject field sets the email subject line. 'Build Notification' clearly indicates the purpose.
Fix the error in the Jenkins email notification code by completing the missing field.
emailext( to: 'build@company.com', subject: 'Build Notification', body: [1] )
The body field must be a string enclosed in quotes. Option B correctly provides a string.
Fill both blanks to add a reply-to address and set the email content type in Jenkins email notification.
emailext( to: 'build@company.com', replyTo: '[1]', contentType: '[2]', subject: 'Build Notification', body: 'Build completed.' )
The replyTo field sets the reply address, here noreply@company.com. The contentType is set to text/html to allow HTML content in the email body.
Fill all three blanks to configure a Jenkins email notification with recipient, subject, and body using variables.
def recipient = 'devteam@company.com' def subjectLine = 'Build [1]' def messageBody = 'The build number [2] has [3].' emailext( to: recipient, subject: subjectLine, body: messageBody )
The subject line uses 'Status' to describe the build state. The build number is '#42'. The body states the build 'succeeded'. This combination forms a clear notification.