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