Slide 1

Slide 1 text

Continuous Delivery to the PowerShell Gallery in 5 minutes Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 2

Slide 2 text

TODAY’s TO DO LIST 1. GET UP 2. Drink Coffee 3. Create Continuous Delivery Process for Delivering Modules to the PowerShell Gallery 4. In only 5 minutes J Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 3

Slide 3 text

Why Modules? • Ps1 scripts EVERYWHERE!! • Use them in other scripts • Share them • Modularity • Only export functions user needs Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 4

Slide 4 text

Why PowerShell Gallery? • Public or Private Nuget Repository • Share your Modules • Centralise deployment of Modules • PowerShell Gallery is safe and secure Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 5

Slide 5 text

What do we need? • Plaster – Install-Module Plaster • Pester – Install-Module Pester -Force (even though it is installed by default) Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 6

Slide 6 text

What do we need? We won‘t have time for much detail!! • Plaster – Install-Module Plaster • Pester – Install-Module Pester -Force (even though it is installed by default) • GitHub Account • VSTS account Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 7

Slide 7 text

Plaster Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 8

Slide 8 text

Plaster Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 9

Slide 9 text

Plaster Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 10

Slide 10 text

Pester Write Test Run Test Fail Test Write Code Run Test Pass Test Repeat Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 11

Slide 11 text

Pester Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 12

Slide 12 text

Git Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 13

Slide 13 text

VSTS Build Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 14

Slide 14 text

VSTS Build Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 15

Slide 15 text

VSTS Release Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 16

Slide 16 text

VSTS Release Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 17

Slide 17 text

VSTS DashBoard Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 18

Slide 18 text

PowerShell Gallery Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info

Slide 19

Slide 19 text

Summary Continuous Delivery of PowerShell Module to the Gallery is easy Plaster can template your module framework Pester is a Unit Testing Framework for PowerShell VSTS is free Have Fun – Create some modules today Rob Sewell @sqldbawithbeard https://sqldbawithAbeard.com RobSewell.Info