VSTS Powershell Commands

Tips and tricks Inline Powershell task VSTS, in this post VSTS/TFS command you can trigger from Powershell in your build or release pipeline

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: VSTS Powershell Commands. Continue reading “VSTS Powershell Commands”

Advertisements

Set Buildnumber from Inline Powershell

Tips and tricks Inline Powershell task VSTS, set the build number for the build from Powershell

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Set the buildnumber. Continue reading “Set Buildnumber from Inline Powershell”

Set progess in Inline Powershell task

Tips and tricks Inline Powershell task VSTS, show progess of your task

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Set progress. Continue reading “Set progess in Inline Powershell task”

Let your Inline Powershell task fail

Tips and tricks Inline Powershell task VSTS, let your Task fail the build or release

Maximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Let your task fail. Continue reading “Let your Inline Powershell task fail”

Use VSTS Variables Inline powershell in build and release pipelines

Tips and tricks Inline Powershell task VSTS, use VSTS/TFS variables in your task

vsts-inlinepowershell-inlinepowershellMaximize how you use your VSTS build and release pipeline with Inline Powershell tasks. In this blog series ‘Tips and Tricks for Inline Powershell’, I will show simple samples on how to get more out of your pipelines. This blog post: Use VSTS Variables. Continue reading “Use VSTS Variables Inline powershell in build and release pipelines”

Test Azure deployments in your VSTS Release Pipeline

pesterWhen deploying Azure Resources you want to know if all resources are deployed as expected. To check if the resources are correctly deployed you can open the portal and visually inspect the deployed recourses or you can also run some powershell to validate the resources. Why not automate these checks and add them to your deployment pipeline. To validate the resources, I extended the Pester Build Task to connect to Azure. A test that checks the deployment of a VM can look like:

Continue reading “Test Azure deployments in your VSTS Release Pipeline”

Powershell Pester in a VSTS build pipeline

When you are developing Powershell scripts, creating some unit tests will help you in monitoring the quality of the scripts. Writing some tests will give you some assurance that your code still works after you make some changes. Writing Powershell unit tests can be done with Pester. Pester will enable you to test your Powershell scripts from within Powershell. It is a set of Powershell functions for unit testing Powershell. These functions will allow you to mock and isolate the Powershell code under test. When you want to integrate your unit test into your VSTS build pipeline, you need an build extension to run then in your build pipeline.
Continue reading “Powershell Pester in a VSTS build pipeline”