Advertisement
ymoon1972

CPIM-aliases

Dec 2nd, 2021
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # These are the SHARED aliases and should very rarely change or be removed/added to.
  2. # If you want to create a new alias or change one of the ones below, please consider doing that in your
  3. # OWN aliases file unless there's something that MUST be shared with the entire team:
  4. #
  5. # %INETROOT%\private\developer\%USERNAME%\build\aliases.pub
  6. #
  7. # We even made aliases for making that easy!
  8.  
  9. # edit and update PERSONAL aliases & config files
  10. myenv %DIREDITOR% %_NTDEVELOPER%\build
  11. edalp %FILEEDITOR% %_NTDEVELOPER%\build\aliases.pub
  12. upalp alias.exe -f %_NTDEVELOPER%\build\aliases.pub
  13. edue %FILEEDITOR% %_NTDEVELOPER%\build\userenv.cmd
  14.  
  15. # edit and update SHARED aliases & config files
  16. edal %FILEEDITOR% %INETROOT%\.config\aliases.pub
  17. upal alias.exe -f %INETROOT%\.config\aliases.pub
  18.  
  19. # Find aliases matching the argument.
  20. # Example: falias TPEngine
  21. falias alias | findstr /I $1
  22.  
  23. # CoreXT 5 Aliases
  24. gobo PowerShell.exe -NoLogo -ExecutionPolicy Unrestricted -Command "& { start ('\\reddog\Builds\branches\git_'+([regex]::Match($(git remote -v)[0],'/(?<r>[-\w]+) ').Groups['r'].value.Replace('-','_')) + '_' + $(git rev-parse --abbrev-ref HEAD)) }"
  25. govso PowerShell.exe -NoLogo -NoProfile -ExecutionPolicy Unrestricted -Command "& { start ([regex]::Match($(git remote -v),'(?<uri>https://.+) [(]fetch[)]').Groups['uri'].value + '?version=GB' + $(git rev-parse --abbrev-ref HEAD)) }"
  26. gowabt PowerShell.exe -NoLogo -NoProfile -ExecutionPolicy Unrestricted -Command "& { start ('http://wabt/BuildTracker/BuildTracker/default.aspx') }"
  27. one start http://aka.ms/OneBranch
  28.  
  29. # go to certain folders
  30. drop pushd %INETROOT%\out\debug-AMD64\$*
  31. dropte pushd %INETROOT%\out\debug-AMD64\Web.TPEngine\_PublishedWebsites\Web.TPEngine\$*
  32. dropws pushd %INETROOT%\out\debug-AMD64\Web.Static\_PublishedWebsites\Web.Static\$*
  33. dropti pushd %INETROOT%\out\debug-AMD64\Web.TokenIssuingService\_PublishedWebsites\Web.TokenIssuingService\$*
  34. dropvs pushd %INETROOT%\out\debug-AMD64\Web.TokenValidationService\_PublishedWebsites\Web.TokenValidationService\$*
  35. dropadm pushd %INETROOT%\out\debug-AMD64\Microsoft.Cpim.Web.Admin\_PublishedWebsites\Web.Admin\$*
  36. dropr pushd %INETROOT%\out\retail-AMD64\$*
  37. droprte pushd %INETROOT%\out\retail-AMD64\_PublishedWebsites\Web.TPEngine\$*
  38. droprws pushd %INETROOT%\out\retail-AMD64\_PublishedWebsites\Web.Static\$*
  39. droprti pushd %INETROOT%\out\retail-AMD64\_PublishedWebsites\Web.TokenIssuingService\$*
  40. droprvs pushd %INETROOT%\out\retail-AMD64\_PublishedWebsites\Web.TokenValidationService\$*
  41. dropradm pushd %INETROOT%\out\retail-AMD64\_PublishedWebsites\Web.Admin\$*
  42. src pushd %INETROOT%\src\$*
  43. prod pushd %INETROOT%\src\production\$*
  44. test pushd %INETROOT%\src\test\$*
  45. cache pushd %NugetMachineInstallRoot%\$*
  46. te pushd %INETROOT%\src\Production\Web.TPEngine\Test\$*
  47. dep pushd %INETROOT%\src\Production\Deployment\$*
  48. refl pushd %INETROOT%\src\Test\Web.Reflector\$*
  49. cmn pushd %INETROOT%\src\Production\Common\Test\$*
  50. data pushd %INETROOT%\src\Production\Data\Test\$*
  51. admin pushd %INETROOT%\src\Production\Admin\Test\$*
  52. wadmin pushd %INETROOT%\src\Production\Web.Admin\Test\$*
  53. tfs pushd %INETROOT%\src\Production\CloudUnitTests\Configuration\TrustFrameworkFiles\$*
  54. #certs pushd %INETROOT%\src\Production\Deployment\Roles\Admin\Configuration\CertificateFiles\$*
  55. spe pushd %INETROOT%\src\Test\PolicyEditor\$*
  56. uxp pushd %INETROOT%\src\production\UserExperience.Packages\$*
  57.  
  58. # folder navigation
  59. - = popd
  60. .. = pushd ..\$*
  61. ... = pushd ..\..\$*
  62. .... = pushd ..\..\..\$*
  63.  
  64. # open certain tools
  65. npp notepad++ $*
  66. v for %i in (*proj) do vsmsbuild %i $*
  67. v14 for %i in (*proj) do vsmsbuild %i /v14.0 $*
  68. v15 for %i in (*proj) do vsmsbuild %i /v15.0 $*
  69. v16 for %i in (*proj) do vsmsbuild %i /v:16.0 $*
  70. vd vsmsbuild dirs.proj
  71. hosts %FILEEDITOR% %SYSTEMROOT%\system32\drivers\etc\hosts
  72. inetmgr %windir%\system32\inetsrv\InetMgr.exe
  73. fiddler "%ProgramFiles(x86)%\fiddler2\fiddler.exe"
  74. trv %inetroot%\external\tools\TraceViewer\TraceViewer.exe
  75. policyview %REPOROOT%\out\debug-AMD64\PolicyVisualizationTool\PolicyVisualizationTool.exe
  76.  
  77. # Process killing
  78. killiis taskkill /f /im w3wp.exe
  79.  
  80. # run powershell from command line
  81. ps powershell -ExecutionPolicy UnRestricted -command .\$*
  82. devsetup powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupCpimDevBox.ps1; fStart
  83. lswsetup call %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\LocalDeploymentLiveSiteWorker\LswLocalDeploy.cmd
  84. devsetupr powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\out\retail-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupCpimDevBox.ps1; fStart
  85. iissetup powershell -ExecutionPolicy UnRestricted -command %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupIIS.ps1 $*
  86. iissetupr powershell -ExecutionPolicy UnRestricted -command %INETROOT%\out\retail-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupIIS.ps1
  87. upolicies pushd . & cd /d %INETROOT%\src\Production\CloudUnitTests\ & build -cC $* & powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupCpimDevBox.ps1; fStart & popd
  88. upoliciesr pushd . & cd /d %INETROOT%\src\Production\CloudUnitTests\ & build -cC $* & powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\out\retail-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupCpimDevBox.ps1; fStart & popd
  89. delUsers del %ProgramData%\CPIM\User\$*
  90.  
  91. #enable admin authroization locally
  92. enableadminauth powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\enableWebAdminAuthentication.ps1; fEnableAuthentication -dropRoot %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE% && powershell -ExecutionPolicy UnRestricted -command %INETROOT%\out\debug-%PROCESSOR_ARCHITECTURE%\CloudUnitTests\setupIIS.ps1 -admin
  93.  
  94. version git show remotes/origin/master:.config/.inc/versions.xml
  95. BranchDiff git difftool --dir-diff master
  96.  
  97. # Testing
  98. ut powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\ut.ps1; Run-AllMatchingTestsVerbose $1
  99. dut powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\ut.ps1; Debug-AllMatchingTests $1
  100. uts powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\ut.ps1; Run-AllMatchingTestsSummary $1
  101. utl powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\ut.ps1; List-AllMatchingTests $1
  102. apitestresp powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\ut.ps1; GenerateApiResponse $1
  103. portalut call %INETROOT%\src\Production\CloudUnitTests\UnitTestCommands\RunPortalUTsLocal.cmd
  104. launchadmin call %INETROOT%\src\Production\CloudUnitTests\UnitTestCommands\RunPortalLocal.cmd
  105. cosclient start cmd.exe /c "cd %INETROOT%\src\Production\Web.AdminClient && node %PkgMicrosoft_Portal_Tools%\build\Typescript\tools\tsc\tsc --project tsconfig.json -w"
  106.  
  107. #Q Buddy Build
  108. #qb %INETROOT%\External\Tools\Q\Quickbuild.exe $*
  109. #qbuddy %INETROOT%\External\Tools\Q\Quickbuild.exe buddy -c $* -buildenv AP -bq Azure_CPIM
  110.  
  111. # Run build and devsetup
  112. bad = call %INETROOT%\build\aliases\bad.cmd $*
  113.  
  114. # Nova Deployment
  115. deploynova = call %INETROOT%\build\aliases\deploynova.cmd $*
  116. #### Obsolete
  117. # deployperf = call %INETROOT%\build\aliases\deployperf.cmd $*
  118. # querybuild = pushd . & cd /d %INETROOT%\out\debug-amd64\AutoDeployment & Autodeployment.exe $* & popd
  119. # deployfeature = call %INETROOT%\build\aliases\deployfeature.cmd $*
  120.  
  121. prodver = pushd . & cd /d %INETROOT%\out\debug-amd64\AutoDeployment & Autodeployment.exe /q & popd
  122.  
  123. #### WARM rollout submission - Obsolete
  124. # warmall = call %INETROOT%\build\aliases\requestwarm.cmd all $*
  125. # warmts = call %INETROOT%\build\aliases\requestwarm.cmd testatic $*
  126. # warmadmin = call %INETROOT%\build\aliases\requestwarm.cmd admin $*
  127. # warmswr = call %INETROOT%\build\aliases\requestwarm.cmd synthetic $*
  128. # warmswrt = call %INETROOT%\build\aliases\requestwarm.cmd synthetictest $*
  129. # warmbilling = call %INETROOT%\build\aliases\requestwarm.cmd billing $*
  130. # warmls = call %INETROOT%\build\aliases\requestwarm.cmd livesite $*
  131.  
  132. # Cookie management
  133. diriecookies = dir %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCookies
  134. deliecookies = del %USERPROFILE%\AppData\Local\Microsoft\Windows\INetCookies
  135.  
  136. # Build
  137. bcr = build -cC $* retail
  138. bcnd = call %INETROOT%\build\aliases\bcnd.cmd $*
  139. bcrnd = call %INETROOT%\build\aliases\bcrnd.cmd $*
  140.  
  141. # Localization
  142. noloc = SET Enable_LBA=
  143. locoff = SET Enable_LBA=
  144. locon = SET Enable_LBA=1
  145.  
  146. # Acquire PPE first party token
  147. ppeToken = powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Test\Tools\PowershellScripts\token.ps1; GetAuthToken -TenantName "cpim3.ccsctp.net" -ResourceAppIdURI "https://graph.ppe.windows.net"
  148. emailppeToken = powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Test\Tools\PowershellScripts\token.ps1; GetAuthToken -TenantName "cpim3.ccsctp.net" -ResourceAppIdURI "5c807bd6-a27e-4e0b-89b1-f1e7ec3ee715"
  149.  
  150. #Get TenantId
  151. getTenantId = powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\CloudUnitTests\copyTenantLocally.ps1; fGetTenantId -domainName $1
  152.  
  153. #open well known endpoint for a tenant
  154. tenantwk = explorer https://login.windows.net/$1.onmicrosoft.com/.well-known/openid-configuration
  155.  
  156. #open a tenant in ibiza portal b2c or ief blade
  157. ibiza=explorer "https://portal.azure.com/$1.onmicrosoft.com?Microsoft_AAD_B2CAdmin=true#blade/Microsoft_AAD_B2CAdmin/TenantManagementMenuBlade/id/$1.onmicrosoft.com"
  158. ief=explorer "https://portal.azure.com/$1.onmicrosoft.com?Microsoft_AAD_B2CAdmin=true#blade/Microsoft_AAD_B2CAdmin/CustomPoliciesMenuBlade/overview/tenantId/$1.onmicrosoft.com"
  159.  
  160. #open pull requests page or code flow for a pull request given a pull request id.
  161. prweb=explorer https://msazure.visualstudio.com/DefaultCollection/One/_git/AD-CPIM/pullrequest/$*
  162. codeflow=explorer "codeflow://open?server=https://msazure.visualstudio.com/&project=One&repo=AD-CPIM&pullRequest=$1&alert=true"
  163.  
  164. nugetList = for %i in (CoreXTMirror Toolset NugetMirror MSNugetMirror Official ManualMirror Dev Bootstrap) do @(echo.&echo Versions found in %i&nuget list $1 -Source https://msazure.pkgs.visualstudio.com/DefaultCollection/_apis/packaging/%i/nuget/index.json )
  165.  
  166. #Gulp builds
  167. gb = gulp build -n=$1 -v=$2 -b=$3
  168.  
  169. #Yarn
  170. yarn %PkgNPM_OnCloudBuild%\tools\Yarn\bin\yarn.cmd $*
  171.  
  172. #Publishing a page layout version
  173. ppl = pushd . & powershell -ExecutionPolicy UnRestricted -command . %INETROOT%\src\Production\UserExperience.Packages\PublishPageLayout.ps1; & popd
  174.  
Advertisement
RAW Paste Data Copied
Advertisement