Who broke the build is an Alexa Skill that runs on AWS Lambda. You can use it to shame your co-workers when they break the Jenkins build!
Requirements
- Jenkins server
- Amazon Echo
- Aws account
- Amazon Alexa Developer account
How to use it
The following steps assume you are already familiar with creating Alexa Skills and AWS Lambdas.
- Create a new AWS Lambda function.
- Download this project source code and run
npm install
on it. - Modify the Gruntfile.js to add your Lambda ARN.
- Create a file config.json with the following content:
{
"jenkinsUrl": "yourjenkins.com",
"jenkinsPort": 8080,
"jenkinsUser": "jenkins",
"jenkinsApiToken": "replace_with_your_jenkins_api_token",
"jenkinsJobName": "Name of the job you are interested in watching if breaks"
}
- On your terminal, execute
grunt deploy
to upload your code to the Lambda function. - Create a new Alexa Skill and define the Invocation Name as jenkins.
- Define the interaction model as follows:
{
"intents": [
{
"intent": "WhoBrokeTheBuild",
"slots": []
}
]
}
- Define the utterances. You can define many more if you like!
WhoBrokeTheBuild who broke the build
Once everything is configured, you can simply say to your Amazon Echo: "Alexa, ask jenkins who broke the build"