Jenkins Pipeline As A Code

Coming Soon

Flow of EXECUTION

Login to AWS account

Code Commit

Create Codecommit repo

Create IAM user with codecommit policy

Generate ssh key locally

Exchange keys with IAM user

put source code from github repo to cc repository and push

Code Artifact

Create an IAM user with code artifact access

Install AWS CLI, configure

Export auth token

Update settings.xml file in source code top level directory with below details

Update pom.xml file with repo details

Sonar Cloud

Create Sonar cloud account

Generate Token

Create SSM Parameters with sonar details

Create Build project

Update codebuild role to access SSMparameterstore

Create Notifications for sns or slackĀ 

Build Project

Update p[om.xml with artifacts version with timestamp

Create variables in SSM => parametersore

Create build project

Update codebuild role to access SSMparameterstore

Create Pipeline

Codecommit

Testcode

Build

Deploy to S3 bucket

Test Pipeline