This file contains 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
$keepApps = @("c1335042-3002-4257-bf8a-75c898ccb1b8","437dbf0e-84ff-417a-965d-ed2bb9650972","63ca2fa4-4f03-4f2b-a480-172fef340d3f") | |
Get-BcContainerAppInfo -containerName $containerName -installedOnly | where -Property AppId -NotIn $keepApps | % {UnInstall-BcContainerApp -containerName $containerName -name $_.Name -publisher $_.Publisher -version $_.Version -Force } | |
Import-TestToolkitToBcContainer -containerName $containerName -includeTestLibrariesOnly -includePerformanceToolkit |
This file contains 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
$rootpath = "<testfolderpath>" | |
$givenOut = "" | |
$thenOut = "" | |
$output = "" | |
$scenarioName = "" | |
$files = Get-ChildItem -Path $rootpath | |
$files | ForEach-Object { |
This file contains 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 Git-ClearBranches { | |
git remote prune origin | |
git branch -vv | where {$_ -match '\[origin/.*: gone\]'} | foreach {git branch -D ($_.split(" ", [StringSplitOptions]'RemoveEmptyEntries')[0])} | |
} |
This file contains 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
$AppJsonFiles = git diff --staged --name-only | |
$AppJsonFiles | ForEach-Object { | |
if ($_ -like "*app.json") { | |
$appJson = git show :$_ | |
$appJson = $appJson | ConvertFrom-Json | |
$appJsonVersion = [System.Version]$appJson.Version | |
if ($appJsonVersion.Build -ne 0) { |
This file contains 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
#!C:/Program\ Files/Git/usr/bin/sh.exe | |
echo | |
exec powershell.exe -NoProfile -ExecutionPolicy Bypass -File ".\.githooks\CheckCommitContraints.ps1" | |
exit |
This file contains 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
$ContainerNameOld = 'BC17-dev' | |
$ContainerNameNew = 'BC18-dev' | |
$TargetVersionBasePath = 'C:\bcartifacts.cache\onprem\18.0.23013.23795' | |
$BackFolderName = 'C:\ProgramData\BcContainerHelper\DatabaseUpgrade\' | |
$BackFile17 = Join-Path $BackFolderName 'Database_17.bak' | |
# Unsinstall all Extensions | |
Get-BcContainerAppInfo -containerName $ContainerNameOld | ForEach-Object { UnInstall-BcContainerApp -containerName $ContainerNameOld -Name $_.Name -Version $_.Version -Force } | |
# Unintall all 'Symbols only' extensions |
This file contains 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
pageextension 50100 CustomerListExt extends "Customer List" | |
{ | |
actions | |
{ | |
addlast(processing) | |
{ | |
action(RunVendorList) | |
{ | |
ApplicationArea = All; |