More Advanced Steps
Send email
mail body: 'Uh oh.', subject: 'Build Failed!', to: '
[email protected]'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients:
'
[email protected]'])
Deploy to Amazon Elastic Beanstalk
wrap([$class: 'AmazonAwsCliBuildWrapper', credentialsId: 'aws-beanstalk-
credentials', defaultRegion: 'us-east-1']) {
sh 'aws elasticbeanstalk create-application-version'
}
Integrate with Jira
jiraComment(issueKey: "EX-111", body: "Job '${env.JOB_NAME}' ($
{env.BUILD_NUMBER}) built. Please go to ${env.BUILD_URL}.")