43
Hands-On Lab: Take CA Release Automation for a Test Drive Marta Benach DevOps: Continuous Delivery CA Technologies Principle Engineering Services Architect DO4X211L @TwitterHandle #CAWorld

Hands-On Lab: Take CA Release Automation for a Test Drive

Embed Size (px)

Citation preview

Hands-On Lab: Take CA Release Automation for a Test Drive

Marta Benach

DevOps: Continuous Delivery

CA Technologies

Principle Engineering Services Architect

DO4X211L

@TwitterHandle

#CAWorld

2 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

© 2015 CA. All rights reserved. All trademarks referenced herein belong to their respective companies.

The content provided in this CA World 2015 presentation is intended for informational purposes only and does not form any type of

warranty. The information provided by a CA partner and/or CA customer has not been reviewed for accuracy by CA.

For Informational Purposes Only

Terms of this Presentation

3 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Abstract

Curious about the latest version of CA Release Automation? Why not take it for a spin? CA Release Automation delivers end-to-end automation, insights and integrations to take you from build to production more effectively than ever before. But don’t take our word for it. For the first time ever, we are offering a special test drive to enable you to experience the capabilities of CA Release Automation firsthand.

MartaBenach

CA Technologies

Principal Engineering Services Architect

4 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Agenda

WHAT IS THE RELEASE AUTOMATION CUSTOMER TEST DRIVE

FOUNDATION FOR CONTINUOUS DELIVERY: CA RELEASE AUTOMATION

LAB USE CASE

LAB WALK THROUGH

SUMMARY

1

2

3

4

5

5 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

CA Release Automation Test Drive

What is the test drive? A sandbox environment with a built-in

Continuous Delivery Use Case

Videos, FAQs, How-To’s, Step By Steps

Why did we build it? Enable customers to get hands on

experience with CA Release Automation

How do I get it? Register at the end of this lab

Speak to your account rep

6 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Governance, approval gatesReusable models, consistency

REP MGR

Foundation for Continuous Delivery: CA Release Automation

Manage the complexity and volume of applications, tools and environments

SCALE

Align teams to focus on customer-centric, on-demand releases

ACCELERATE

Stabilize the entire release cycle to continually improve quality

CONTROL

SCM CI CONTAINER TEST CONFIG CLOUD PROVISION CHANGEMGMT

Transparency, tracing, auditing Release alerts & details

QA/TEST PRE-PROD PRODUCTIONDEV

CustomerExperience

7 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Continuous Delivery Scenario – Pulling It All Together

4Stage Artifacts

1

Release Operations Center

Source Control

QA

Dev1

Test 1

Production

Kick –Off Build

2

5

Run Deployment Processes

6 7

Promote Promote

Approval Gate

3

Service Virtualization

8 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

CA Release Automation Test Drive Use Case

Within the Test Drive environment, launch Jenkins and

initiate a new build

Within the Test Drive environment, login to CA Release

Automation (login provided when prospect

registers)

Browse the dashboard to understand Agents, Applications

and Deployments

Click on Deployments and access the latest Jenkins build under

‘Running’ to see its deployment status and post deployment

actions

Check the Deployment Pipeline Overview and promote to next

environment, Stage

Examine the latest instance of the deployment in the Post

Deployment tab, and ‘Execute a Sanity Test’ to see real-time

details and to make sure the Cars website is running

At the Deployment Pipeline Overview, see the approval gate at Production and approve step to move release forward to final

environment

View the release loading into production, including the artifact

distribution

Return to the Test Drive environment and launch the Cars

application to see it fully deployed in production

The Use Case provided with the test drive is Cars, a luxury automotive website.

Use Case General Flow

9 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab Environment

Login to Lab Machine

Launch Google Chrome

http://192.168.195.128:8080/testdrive/index.html

10 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on “Launch Jenkins CI”

11 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on “Build Now”

12 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Note the Build Number– In this example, it is 104

yours maybe different

Return to the Sandbox Portal Page

13 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click CA Release Automation link

14 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Login with superuser/suser

15 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

On the Dashboard Click the “Total Agent” button to see details about the agents in the system.

16 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click the “Application” buttonThere are 2 applications defined

17 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click the “Deployments” buttonRecent Deployments are listed

18 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on the Running Deployments. If your build is not yet running, wait a moment and refresh the screen with f5.

The Project name is listed as Sprint1(7-104), where 104 is the Jenkins build number. (This may be different for you)

Click the deployment Name details on the running deployment.

19 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Pre-deployment, Deployment and Post Deployment boxes show the status.

Here, the Post Deployment is running, demarcated by the big orange box.

The steps for the Deployment are shown. These steps are dynamically created in the Pre-deployment stage according to the artifacts built by Jenkins.

20 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click On the Post Deployment tab to see the steps

Execute Sanity Test which verifies the website is up

Run Test Suite which uses Service Virtualization to run tests against the application

Promote Deployment which promotes the build to the next environment

21 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Now let’s check the pipeline.

On the Releases tab dropdown, select “Deployment Pipeline Overview”.

22 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Sprint 1 project shows 4 environments, Dev, TST-1, Stage, and Production.

Each environment shows the state and the build currently applied.

The Dev environment shows the current build.

Once completed, the release will auto-promote to the TST-1 environment.

23 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Once the TST-1 deployment has completed, Click the arrow.

Select “Promote to Next Environment”

Note: This will promote to the environment to the right. Environments can be rearranged by dragging the boxes.

24 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The deployment will now run in the Stage environment.

25 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Let’s look at the Stage Deployment.

Select Releases | Deployments

26 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Running deployment is shown at the top of the list. Build 104 has been successfully

deployed to Dev and TST-1 and is currently deploying to Stage.

Click the Blue deployment link, Artifact Driven Deployment-104_Stage.

27 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on the Post Deployment Step “Execute Sanity Test” while it is running, to see real time details about the process.

28 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

This process verifies that the Cars website is running.

The process accesses a given URL and checks the value of the http response code.

If the website is not available, it loops using a delay action and tries again.

Once it is successful, it proceeds to the next step in the deployment.

29 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Return to the Pipeline Report.

Click Release | Deployment Pipeline Overview.

30 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Production Environment is configured with an approval gate. It requires approval for the deployment to run.

Click on the … Click Release | Deployment Pipeline Overview.

31 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on “Artifact Driven Deployment-104_Stage” link

32 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on “Waiting for user input.”

33 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Expand the Parameter Required (Check if Approve) and Select “Yes, Please Continue with Deployment”

Click “Apply”. The deployment will now be pushed to production.

34 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Production Deployment will continue.

In the Pre-Deployment, we can see the artifacts being distributed for the build.

35 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Once the Production deployment is complete, return to the Sandbox Portal page.

36 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

Click on “Launch Cars Application”

37 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Lab – Deploy Cars 2.0 Application

The Cars application has now been deployed into the Production environment.

38 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Results

• CA Release Automation is an Integral part of the DevOps journey

• CA Release Automation makes deployment to multiple environments super easy

• CA Release Automation allows for consistent and fast deployments to production environments

SummaryA Few Words to Review

Insert Logo Here

39 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Recommended Sessions

SESSION # TITLE DATE/TIME

DO4T06SVision and Roadmap: Learn How Application Release

Solutions Help You Lead the Way11/18/2015 at 2:00 pm

DO4X213L

Hands-On Lab: Complement CA Release Automation with

a New Continuous Delivery Solution Offering A Visual

Approach for Complex Application Releases

11/18/2015 at 4:30 pm

DO4X210L

Hands-On Lab: Build Integrations You Need with CA

Release Automation Rapid Development Kit (RDK) and

Software Development Kit (SDK)

11/19/2015 at 3:00 pm

40 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Must See Demos

CA Release Automation

CA Release Automation

Theater 4

Cloud & SaaS Deployments

CA Release Automation

Theater 4

CA RA Rapid Dev. Kit, SDK

CA Release Automation

Theater 4

Integrations

CA Release Automation

Theater 4

41 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Follow On Conversations At…

Smart Bar

CA Release Automation

Theater 4

Tech Talks

CA Release Automation

Theater 4

42 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

Q & A

43 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD

For More Information

To learn more, please visit:

http://cainc.to/Nv2VOe

CA World ’15