Getting Teamcity project Build_ID

Need some help Powershell/Command Prompt. I am trying to save TeamCity Build properties Value to Variable. But i am not save value to variable
$teamcity_build="%teamcity.build.id%"
And when I echo the build properties it is working
echo %teamcity.build.id% > C:\test\version.txt

I am trying to get the value of this URL http://localhost/viewLog.html?buildTypeId=Project_Name&buildId="20987"

0
1 comment

Hi Nitheesh,

I'm not sure I fully understand something. The %teamcity.build.id% is *not* assigned to $teamcity_build, but if you "echo" it, it works correctly?

0

Please sign in to leave a comment.