Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created November 9, 2012 16:15
Show Gist options
  • Save ejhayes/4046580 to your computer and use it in GitHub Desktop.
Save ejhayes/4046580 to your computer and use it in GitHub Desktop.
Calling build2 with arguments gathered from build1
param (
[string]$test,
$buildArgs
)
echo $buildArgs.test
./build2.ps1 @buildArgs
param (
[Parameter(Mandatory=$true)][string]$test
)
echo "Build2 invoked"
echo $test
./build.ps1 -test "Hiya" -buildArgs @{ "test" = "my value to you" }
# my value to you
# Build2 invoked
# my value to you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment