From the course: Running Jenkins on AWS: Deploying and Managing Jenkins on Cloud Infrastructure

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Create a freestyle job to deploy code from GitHub, part 1

Create a freestyle job to deploy code from GitHub, part 1

- [Instructor] Now that we have the web app deployed in AWS Lambda and a GitHub repository with a code for the application, we need to configure a Jenkins job that deploys the application whenever a change is pushed to the repo. I'm starting in GitHub to get the URL for our repo, I'll select code and then HTTPS. Then I'll select the icon to copy the URL. Now let's go to Jenkins. In the Jenkins tab, I'll select new item. For the job name let's stick with the same name we use for the application and the repo, python-api. We'll be using a freestyle project, so I'll select that and then select OK. For the job description, let's explain exactly what this job does. It deploys our application to AWS Lambda. To start the configuration, we need to select the option to restrict where this project can run. If we add any more build servers with different roles, we want to make sure that this job runs on a server that has the Lambda role. So I'll select this option and enter Lambda. Now let's move…

Contents