• LOGIN
  • No products in the cart.

DevOps on AWS – CI and CD Pipe line

RNS – Demo Project on CD Pipe line 

1) Continuous Integration:
1. Make Sure your code is in compile state — Green
2. Execute unit tests – 100% -> written by developers
3. Reporting build status & test reports

2) Continuous Delivery:

4. Deployment
5. Running Automation Suits
6. Reporting with 100% tests cases success

Servers:
Deployment Server:           — Tomcat / WebLogic
CI/Build Server:                 — Jenkins Master

Example Application Activities:

Part 1. Commit the source code and Build Script in SVN
Part 2. Commit the DB and other deployment scripts in SVN
Part 3. Automate every thing through Jenkins in Step by Step
Part 4. Trigger the jobs for every commit/push 
Part 5. Perform a build and deployment Steps

Steps:
Part 1. Commit the source code and Build Script in SVN
Sub Version (SVN) :

— Let’s start the subversion and Access the URL:- IP:80/repo
— Url can be verified from httpd.conf file

— Push the code:  Let’s checkout the code to client machine from of current repo

— Copy the source code of the app and Build Scripts to the R1 release directory

        — svn co http://IP:80/repo/branches/R1 — username 
— cd R1
— svn up
— svn info
— svn ls
— svn add *
–svn commit -m “Source code has been added”


Part 2. Commit the DB and other deployment scripts in SVN

Commit the DB and other deployment scripts in SVN:  Let’s checkout the code to client machine from of current repo.

Part 3. Automate every thing through Jenkins in Step by Step

Jenkins:
       — Start Jenkins Server and Access the URL
       — Create a slave by configuring working directory.
       — Creating a job
                — Specify the Label Expression of ‘Salve Machine Node’
Source code Management section
— copy the URL ‘Repository URL’
              — Build Section
— Invoke Ant version as ‘Default’
— Targets ‘war’
— In case Error:Select the ‘EXecute Shell’
— rm -rf dist
— export ANT_HOME
— export JAVA_HOME
— APACHE_HOME/bin/ant war
Post Build Actions 
— Archive the Artifacts
— Files to archive ‘**/*.war’
— Apply and Save it.

Note: If it is required JDK,Ant in slave machine, add the required JAVA_HOME,ANT_HOME variable at Node –> Environment variable section and tools section.

Note: Make sure the build is successful
Part 4. Trigger the jobs for every commit/push 

Specify when and how your build should be triggered. The following example polls the SVN repository every 15 min and triggers a build, if something has changed in the repo.




Part 5. Perform a build and deployment Steps

— Manual Deployment:
— Go to Deployment Server
— App Server (Tomcat)
— DB (MySql)
— JDK (1.7)

— Deployment Steps:
— 1. Identify the artifacts
— .war file and DB Scripts
— 2. Find out the server and check pre requisites
— 3. Stop the services
  — 4. Take the backup of existing deployment
— 5. Deploy it
— DB deployment
— App/Service Deployment
— 6. Start the Service
— 7. Verify
February 22, 2021

0 responses on "DevOps on AWS - CI and CD Pipe line"

    All rights reserved.
    error: Alert: Content is protected !!
    X