Thought I'd update this bug with current status. I'm also seeing this problem on the latest beta of 2.5.0-beta5.
No regular environment variables are expanded. I'm not certain that it is only the Post-Build shell being different, because if I create a post-build task and set environment variables there, then they are still ignored/lost by Git Publisher.
If I use the Inject Environment variables plugin, I can save the variables into a file in the normal build, then load them at post-build with Inject Environment variables. The variables appear to be read properly, but only the last variable in the file is available for expansion.
So... a workaround I can use for now is to put a full version string into a single variable, Inject that variable at post-build, and then I can use that single variable in Git Publisher to Tag the version.
|