https://github.com/devblackops/Release-Pipeline-Example
Release Pipeline example using PowerShell-based tools
https://github.com/devblackops/Release-Pipeline-Example
Last synced: 4 months ago
JSON representation
Release Pipeline example using PowerShell-based tools
- Host: GitHub
- URL: https://github.com/devblackops/Release-Pipeline-Example
- Owner: devblackops
- Created: 2016-04-15T04:23:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-12T04:40:15.000Z (almost 9 years ago)
- Last Synced: 2024-12-02T18:04:56.988Z (4 months ago)
- Language: PowerShell
- Size: 3.91 KB
- Stars: 22
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - devblackops/Release-Pipeline-Example - Release Pipeline example using PowerShell-based tools (PowerShell)
README
## About
Author: Brandon Olin [[devblackops.io](https://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](https://devblackops.io/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
```powershell
.\build.ps1
```
* Test the script with Pester only
```powershell
.\build.ps1 -Task Test
```
* Test the script with Script Analyzer only
```powershell
.\build.ps1 -Task Analyze
```
* Deploy the script via PSDeploy
```powershell
.\build.ps1 -Task Deploy
```