Release Pipeline example using PowerShell-based tools
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
ServerInfo.ps1
ServerInfo.psdeploy.ps1
ServerInfo.tests.ps1
build.ps1
psakeBuild.ps1

README.md

About

Author: Brandon Olin [devblackops.io]

Overview

An example of using the Release Pipeline Model with PowerShell-based tools. This repository hosts the ServerInfo.ps1 script which will return system information about a given computer. This repository also includes associated tests and build tasks for day to day operations and deployment of the script.

See Building a Simple Release Pipeline in PowerShell using psake, Pester, and PSDeploy for a detailed walkthrough of this repo.

Usage

A psake script has been created to manage the various operations related to testing and deployment of ServerInfo.ps1

Build Operations

  • Test the script via Pester and Script Analyzer
.\build.ps1
  • Test the script with Pester only
.\build.ps1 -Task Test
  • Test the script with Script Analyzer only
.\build.ps1 -Task Analyze
  • Deploy the script via PSDeploy
.\build.ps1 -Task Deploy