sharepoint saturday ottawa- automate your deployments with tfs and build server

36

Upload: vlad-catrinescu-sharepoint-mvp

Post on 09-Jul-2015

238 views

Category:

Technology


1 download

DESCRIPTION

Have you ever wanted to get rid of the classic PowerShell deployments scripts every time you build a new SharePoint Solution? As a developer, don’t you wish you could just deploy the solution on a DEV / QA farm directly from your Visual Studio without having to wait for your SharePoint Administrator to deploy them for you since he doesn’t want developers to be local admins on the servers? As a SharePoint Admin, aren’t you tired of developers bugging you to deploy their solutions? In this session you will learn how to configure TFS Build Server to automate the SharePoint Package deployment to SharePoint servers and how to monitor your deployments!

TRANSCRIPT

Page 1: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server
Page 2: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server
Page 3: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Page 4: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

TFSLogic

Prizes

SharePoint

PowerShell

SharePint

Script

K

?

Page 5: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Is it just a trend, or actually useful?

Page 6: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Automation is the use of tools and strategies that reduce human involvement or interaction in unskilled, repetitive or redundant tasks

Page 7: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Automation is the use of tools and strategies that reduce human involvement or interaction in unskilled, repetitive or redundant tasks

Page 8: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Automation is the use of tools and strategies that reduce human involvement or interaction in unskilled, repetitive or redundant tasks

Page 9: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Automation is the use of tools and strategies that reduce human involvement or interaction in unskilled, repetitive or redundant tasks

Page 10: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Page 11: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Just a buzzword or actually useful?

K

Page 12: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Page 13: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

I want to deploy faster.

I want stability.

Page 14: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Page 15: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

I want to deploy faster.

I want stability.

Page 16: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

I want to deploy faster.

I want stability.

Page 17: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

What will we be using?

Page 18: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

SharePoint Team Foundation Server PowerShell

Page 19: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Why we need SharePoint

Page 20: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Why we need TFS

Page 21: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Bugs

CodeRepository

Tasks

WebDeploy

VersionControl

Tests

Page 22: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Automates deployments

DEV QAINT PRODTFS

Page 23: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Deploys the same way to all stages

DEV QAINT PRODTFS

Page 24: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Scheduled / Manual builds

DEV QAINT PRODTFS

Page 25: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Full Traceability

DEV QAINT PRODTFS

é é é é

Page 26: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Build Level Permissions

DEV QAINT PRODTFS

ê ê

Page 27: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

SharePoint is …… special.

PowerShell is very powerful.

Flexibility to do more than just “deploy”

Ready to integrate with a lot more applications

Why do we need it?

Page 28: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Learning the logic behind the magic

Page 29: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

What is our goal?

Page 30: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

What is our goal?

Build Solution

Copy WSP File to Build

Location

Give Info to PowerShell

Get Info From TFS

Start Remote PowerShell Session

Deploy Solution

Custom Actions

Warmup IIS

Page 31: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

See it in action.

Page 32: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Here is our setup

DeveloperVisual Studio 2013

SharePoint Farm

Active Directory

Page 33: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

In this demo we see how Alex the developer can easily push his code to the Dev farm without ever having access to the server or having to run a PowerShell command. We will also look how the Administrator can deploy to the production server automatically without letting Alex do it. Finally, we will look at how this all works together and at different resources across the web.

Page 34: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Configure Remote PowerShell in SharePoint 2010

http://blogs.msdn.com/b/varun_malhotra/archive/2010/06/10/configure-power-shell-for-remote-use-of-sp-2010.aspx

How to Build Office Developer Tools Projects with TFS Team Build 2012

http://msdn.microsoft.com/en-us/library/ff622991.aspx

SharePoint/TFS Continuous Integration Starter Pack (Farm/Sandbox)

http://sharepointci.codeplex.com/

Customize your build process template http://msdn.microsoft.com/en-us/library/dd647551.aspx

Office / SharePoint 2013 Continuous Integration with TFS 2012 (Apps )

http://officesharepointci.codeplex.com/

Page 35: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Date & Time: Immediately after prizes

Location: Observatory Student Pub

Address: On Algonquin Campus

Parking: No need to move your car!*

Site: http://www.algonquinsa.com/ob.aspx

*Please drive responsibly! We are happy to call you a cab

Page 36: SharePoint Saturday Ottawa- Automate your Deployments with TFS and Build Server

Blog: www.absolute-sharepoint.com| e-mail: [email protected]

Questions & Answers

@vladcatrinescu

http://ca.linkedin.com/in/vladcatrinescu

www.absolute-sharepoint.com

[email protected]