Setup multibranch projects

After logging into the Jenkins web console, we’re ready to add our eksworkshop-app repository. Start by selecting New Item on the top right corner.

Jenkins Login

Set the name of the item to codecommit and select the AWS Code commit item type.

CodeCommit Item

Execute the following commands to get your Git username and password.


To the right of Code Commit Credentials, select Add then CodeCommit. Set the Username and Password to the corresponding values from the previous command.

Jenkins CodeCommit Credentials

Confirm your current AWS Region.

echo https://codecommit.$

Copy that value to theURL field under project.

Jenkins Project Config

Select Save at the bottom left of the screen. Jenkins will begin executing the pipelines in repositories and branches that contain a Jenkinsfile.

Master Branch Pipeline