mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 05:17:22 +00:00
18 lines
783 B
PowerShell
18 lines
783 B
PowerShell
param(
|
|
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
|
|
[string]$parameters
|
|
)
|
|
# Main
|
|
$errorActionPreference = 'Stop'
|
|
|
|
# Step-1 Download buildcore script to local
|
|
echo "download build core script to local with source url: $buildCorePowershellUrl"
|
|
$repositoryRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
$buildCorePowershellDestination = "$repositoryRoot\.openpublishing.buildcore.ps1"
|
|
Invoke-WebRequest $buildCorePowershellUrl -OutFile $buildCorePowershellDestination
|
|
|
|
# Step-2: Run build core
|
|
echo "run build core script with parameters: $parameters"
|
|
$arguments = "-parameters:'$parameters'"
|
|
Invoke-Expression "$buildCorePowershellDestination $arguments"
|
|
exit $LASTEXITCODE |