central release and build management with tfs - microsoft 2/track 3/central... · our daily...

36
Central Release and Build Management with TFS Christian Schlag

Upload: others

Post on 07-Sep-2019

1 views

Category:

Documents


0 download

TRANSCRIPT

Central Release and Build Management with TFS

Christian Schlag

OUR DAILY MOTIVATION

“It’s hard enough for software developers to write code

that works on their machine. But even when it’s done,

there’s a long journey from there to software that’s

producing value – since software only produces value

when it’s in production.”

Martin Fowler

2AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AGENDA

DevOps – Yet another new term?

Release Management within MS tool landscape

Release Process

Roundtrip Example

Benefits of Release Management

Licensing

News in Build Process Templates with TFS 2013

Conclusion

3AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

YET ANOTHER NEW TERM?

DEVOPS

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 4

DEVOPS – YET ANOTHER NEW TERM?

5AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

Running Application

Operations

QA

Dev

DEVOPS – YET ANOTHER NEW TERM?

6AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

IN THE MS TOOL LANDSCAPE

RELEASE MANAGEMENT

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 7

TFS OVERVIEW – TOOL

PERSPECTIVE

8AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

E X T E N S I B L E A P I s

Version Control

Build Automation

CustomizableProcesses

RequirementsManagement

Test CaseManagement

End-to-EndTraceability

Lab Management

Analytics

ProjectManagement

CONTINUOUS VALUE – PROCESS

PERSPECTIVE

Plan REQUIREMENTS

BACKLOG

RELEASE

OperateConstruct

WORKING SOFTWARE

Develop

OperateAgile portfolio management

Team Room

Git

Code Information Indicators

.NET memory Dump Analyzer

Visual Studio and

System Center

integration

Build | Measure | Learn

Integrated release

management

Collaborate

Kanban customization

Work item tagging

Release

Performance events

Load Testing as a Service

Configuration-based

deployments

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

RELEASE PROCESS

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 10

OPTIMIZING THE RELEASE CYCLE

11AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

DEV QAINT PRODTeam Foundation

Server

Coordination

Testing time

ProvisionDeploy

RELEASE PROCESS

12AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

RELEASE CYCLE

13AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

STAGE

RANK

14AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

ARCHITECTURE

15AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

Team Foundation Server Drop Location

RM ClientRM Web

QA

DEV

RM Server

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

ROUNDTRIP EXAMPLE

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 16

BASIC SCENARIO

17AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

Ronald

Releasemanager

C:\Apps\DevC:\DropMySolution Ronald

Releasemanager

C:\Apps\Prod

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

BENEFITS OF RELEASE MANAGEMENT

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 18

GOALS

19AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

More productive employees

Improve quality of

software in production

Faster time to market

BENEFITS OF AUTOMATION

Minimizing of monotonous work

More time for creative work

Automated tasks are faster than manual tasks

Improvement of quality

In the long run: automated processes cost less than manual

processes

20AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

LICENSING

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 21

LICENSING I

Each person using the Release Management Client for Visual

Studio 2013 for creating, updating, or deleting a release

pipeline sequence must be licensed for either Visual Studio

Ultimate with MSDN, Visual Studio Premium with MSDN, Visual

Studio Test Professional with MSDN, or MSDN Platforms.

22AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

LICENSING II

Each person triggering the release pipeline sequence must

be licensed with a Team Foundation Server CAL. However, a

Team Foundation Server CAL is not required to approve stages

or to sign off on a release.

23AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

LICENSING III

Each node or endpoint to which an application is being

deployed must be licensed with one of these two Visual Studio

Deployment offerings:

24AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

LICENSING - SUMMARY

Visual Studio Ultimate includes a license for two deployment

endpoints (environments)

actual promo action till 27.06.2014 (see references)

25AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

WITH TFS 2013

NEWS IN BUILD PROCESS TEMPLATES

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 26

TEAMBUILD - NEW FEATURES

27AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

GIT support

Output location is configurable

Script support (e.g. PowerShell) before and after Build and Test

step

Build results can be stored in Source Control; downloadable as

zip file

Standard templates stored centrally

Windows 8.1 App support

COMPARISON - XAML FILE

28AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

2013

2012

COMPARISON - PARAMETERS

29AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

2013

2012

CUSTOMIZE A TEMPLATE

If the task requires knowledge of specific build inputs or

outputs, use MSBuild.

If the task is something you need to happen when you build in

Visual Studio, use MSBuild.

If the task is something you only need to happen when you

build on the build server, use Windows Workflow Foundation

unless the task requires knowledge of specific build

inputs/outputs.

30AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

cf. Jim Lamb

CUSTOMIZE A TEMPLATE

DECIDE BETWEEN SCRIPT OR CODE ACTIVITY:

If script:

1. Create script (e.g. PowerShell)

2. Define appropriate build parameters

If Code Activity:

1. Create an Activity Library

2. Write C# Code (regard In- and Out-Arguments)

3. Put Code Activity at right position inside the Template

4. Define Build Parameters if needed

31AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

CONCLUSION

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt. 32

SUMMARY

Another gap in the ALM closed

Powerful tool

Not fully integrated, yet

Some difficulties in detail

Good starting point

Deploy to production might not be suitable for all customers

Future of Release Management

33AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

OPEN TOPICS

Outlook:

Security concept

Execute tests with Release Management

Configuration of tokens (dealing with different settings on

each environment)

34AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

REFERENCES

Jim Lamb, http://blogs.msdn.com/b/jimlamb/archive/2010/06/09/windows-workflow-vs-msbuild-

in-tfs-2010.aspx

Dev2Ops, http://dev2ops.org/2010/02/what-is-devops/

RM Licensing, http://www.visualstudio.com/en-us/products/how-to-buy-release-management-

vs.aspx

RM Promo Action, http://www.microsoft.com/de-

de/licensing/lizenzerwerb/promotions/visual-studio-release-management-angebot.aspx

35AIT GmbH & Co. KG – Ihre Software effizienter entwickelt.

AIT GmbH & Co. KGLeitzstr. 45, 70469 Stuttgart

www.aitgmbh.de

[email protected]

+49 151 55052630

BERATUNGAgile ALM und TFS

.NET und Architektur

ENTWICKLUNGDienstleister für individuelle

Lösungen mit .NET und Azure

© AIT GmbH & Co. KG – Alle genannten und gezeigten Marken oder Warenzeichen sind eingetragene Marken oder eingetragene Warenzeichen ihrer jeweiligen Eigentümer

und ggf. nicht gesondert gekennzeichnet. Aus dem Fehlen der Kennzeichnung kann nicht geschlossen werden, dass es sich bei einem Begriff oder einem Bild nicht um eine

eingetragene Marke oder ein eingetragenes Warenzeichen handelt.

AIT GmbH & Co. KG – Ihre Software effizienter entwickelt

WIR UNTERSTÜTZEN SIE

36