powershell - GIT output shown as error in team build 2013 -


background

we have team build 2013 server running against our git repository hosted on tfs 2013 update 4. in build want tag our sources @ end of build build number build.

question

i have got described scenario working. wrote powershell script runs post step of build.

git -c $env:tf_build_sourcesdirectory tag -a ($env:tf_build_buildnumber.split("_")[1]) -m "$env:tf_build_buildnumber" git -c $env:tf_build_sourcesdirectory push origin master --tags 

the command succesful, build shown yellow in browser. happening because git writing output error. nuts, because it's information tool has done me.

is there way prevent git outputting normal output error in powershell/teambuild 2013?

in powershell script redirect output error standard this:

git -c $env:tf_build_sourcesdirectory tag -a 2>&1 | write-host($env:tf_build_buildnumber.split("_")[1]) -m "$env:tf_build_buildnumber" git -c $env:tf_build_sourcesdirectory push origin master --tags 2>&1 | write-host 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -