run.ps1
Import-Module ..\rib -Force $accountName = "bzzztio" $proj = "MyFirstProject" $usr = "richie@bzzzt.io" $tkn = "xozx2cv3m3pfuuzwetevwqd5vtfjr6mz2f3q4ui5c7zbzgdjmora" $releaseDefinitionId = 2 $buildArtifactName = "_prm-ci-pr" $buildname = "prm_baton_pass" $buildToCheck = Get-VstsBuild -vstsAccount $accountName -projectName $proj -buildName $buildname -user $usr -token $tkn Write-Output $buildToCheck | ConvertTo-Json $buildId = $buildToCheck.definition.id #Invoke-VstsReleaseInBuild -vstsAccount $accountName -projectName $proj -releaseDefinitionId $releaseDefinitionId -buildName $buildname -buildArtifactName $buildArtifactName -user $usr -token $tkn $buildOutput = Invoke-VstsBuild -vstsAccount $accountName -projectName $proj -buildId $buildId -user $usr -token $tkn Write-Host $buildOutput |