This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#In this script I expect that the user is already logged in into Azure DevOps with the VSTeam module | |
$projectName = "Pipeline Artifacts vs Build Artifacts" | |
$buildDefinitionIds = @(15,16,17,19) | |
$csvStatsFilePath = "C:\temp\BuildStats.csv" | |
#function to convert the flat timeline logs to a parent child tree, since the timeline has | |
#pipeline, phases and tasks which follow a hierarchy | |
Function ConvertTo-TreeArray($flatArray,$parentKey,$childKey){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Create-RandomFiles{ | |
<# | |
.SYNOPSIS | |
Generates a number of dumb files for a specific size. | |
.DESCRIPTION | |
Generates a defined number of files until reaching a maximum size. | |
This script is based on the following one: https://gist.github.com/Stephanevg/aa4f0ad50b9762b241bbed6d75f7d69d | |
.PARAMETER Totalsize |