Errorlevel in Windows Batch File?

121 views
Skip to first unread message

Jeff Hoover

unread,
Jan 25, 2013, 8:49:44 AM1/25/13
to git-t...@googlegroups.com
I read the wiki, searched Stack Overflow and this forum and I did not find information about this question:

git-tfs doesn't seem to set Errorlevel when run in a Windows batch file. What this means for me is that when I use it in Jenkins, the job won't signal that it failed.

Am I missing something? Or is this feature planned?

Thanks,

Jeff

Matt Burke

unread,
Jan 25, 2013, 10:50:27 AM1/25/13
to git-t...@googlegroups.com
Jeff,

I tried to do that. Git-tfs's Main method sets Environment.ExitCode.
[1] Is there something else it needs to do to make that available to
.bat Errorlevel? There's a lot about batch scripting that I don't know
about. Also, are you running `git-tfs blah` or `git tfs blah`? Which
variety of git are you running? Is it a .exe? Does it pass along the
exit code from git-tfs.exe correctly?

[1] https://github.com/git-tfs/git-tfs/blob/master/GitTfs/Program.cs#L18-L43
> --
> You received this message because you are subscribed to the Google Groups
> "git-tfs-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-tfs-dev...@googlegroups.com.
> To post to this group, send email to git-t...@googlegroups.com.
> Visit this group at http://groups.google.com/group/git-tfs-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages