Top Banner
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
43

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

Feb 09, 2017

Download

Technology

CA Technologies
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hands-On Lab: Take CA Release Automation for a Test Drive

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Lab – Deploy Cars 2.0 Application

Click on “Launch Jenkins CI”

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

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

Lab – Deploy Cars 2.0 Application

Click on “Build Now”

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

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

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

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

Lab – Deploy Cars 2.0 Application

Click CA Release Automation link

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

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

Lab – Deploy Cars 2.0 Application

Login with superuser/suser

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

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.

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

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

Lab – Deploy Cars 2.0 Application

Click the “Application” buttonThere are 2 applications defined

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

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

Lab – Deploy Cars 2.0 Application

Click the “Deployments” buttonRecent Deployments are listed

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

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.

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

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.

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

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

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

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”.

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

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.

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

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.

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

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

Lab – Deploy Cars 2.0 Application

The deployment will now run in the Stage environment.

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

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

Lab – Deploy Cars 2.0 Application

Let’s look at the Stage Deployment.

Select Releases | Deployments

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

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.

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

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.

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

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.

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

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

Lab – Deploy Cars 2.0 Application

Return to the Pipeline Report.

Click Release | Deployment Pipeline Overview.

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

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.

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

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

Lab – Deploy Cars 2.0 Application

Click on “Artifact Driven Deployment-104_Stage” link

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

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

Lab – Deploy Cars 2.0 Application

Click on “Waiting for user input.”

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

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.

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

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.

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

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.

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

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

Lab – Deploy Cars 2.0 Application

Click on “Launch Cars Application”

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

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.

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

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

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

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

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

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

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

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

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

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

Q & A

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

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

For More Information

To learn more, please visit:

http://cainc.to/Nv2VOe

CA World ’15