DEV Community

Cover image for AWS Workshop: cicd with Jenkins
jicoing
jicoing

Posted on • Updated on

AWS Workshop: cicd with Jenkins

About

In this workshop, we integrate AWS CodeBuild and AWS CodeDeploy with Jenkins and execute the CICD pipeline to build and deploy the application. We will also spin up an infrastructure with ALB and EC2’s on which the application would be deployed.
Read more: https://third-party-integration-codebuild-codedeploy-plugins.workshop.aws/en/

Unzip Sample Application

Alt Text

Commit the files to Github Repo

Alt Text

Cloudformation stack contains

Amazon S3 bucket
IAM S3 bucket policy
JenkinsRole
CodeDeploy application
CodeDeploy service role
CodeDeployRole
CodeBuildRole
Jenkins server
CodeBuild project
Auto Scaling group
Auto Scaling launch configurations
Security groups

Alt Text

ELBDNS generated in output

Alt Text

Sample page generated by ELB

Alt Text

SSH into Jenkins server

Alt Text

Retrieve password for Jenkins server - SSH

/var/lib/jenkins/secrets/initialAdminPassword

Alt Text

Jenkins Configuration & deployment

Alt Text

Plugins installation

Alt Text

Alt Text

Starting a freestyle Project in Jenkins server

Alt Text

Build step failure

After multiple tries and debugging sessions the build step kept failing.
ERROR: Build step failed - response HTTP/1.1 301 Moved Permanently but no location header

Alt Text

Top comments (0)