Hi,
I have two build job A and B.
job A build by "Execute Windows Batch Command"
job B build by "Flow"
In job A, I set "This build is parameterized" -> String Parameter -> Name = VAR_REV and Default = 123
In job A "Execute Windows Batch Command", I set as below
echo %VAR_REV%
set VAR_REV=456
echo %VAR_REV%
exit 0
In job A, I set "Post-build Actions"->"Trigger Parameterized build on other project" -> "Project to build" = B and "Current Build Parameter"
In job B "Flow", I set
def REV= build.environment.get("VAR_REV")
println REV
After I build job A, I have output of first echo of job A is 123 and output of second echo of job A is 456.
However, the output at job B is printing out 123.
What should I do to have the data 456 in job B?
Thanks,
Nguyen