-
Notifications
You must be signed in to change notification settings - Fork 654
GitVersion throws Error parsing Infinity value on Jenkins and TeamCity #1982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same problem here. |
@SignumPL @hvincente are you using private repositories (which need authorization)? And what are your CI systems? |
Ok, after more tests, i found a more explicit error. |
I'm using private repo but I don't see any authentication errors in Jenkins console output: `Started by user admin
Restore completed in 386.18 ms for C:\software\Jenkins\workspace\myproject.myproject_jenkinstest@2\build_build.csproj. Build succeeded. Time Elapsed 00:00:01.16 ███╗   ██╗██╗   ██╗██╗  ██╗███████╗ NUKE Execution Engine version 0.23.4 (Windows,.NETStandard,Version=v2.0)
Repeating warnings and errors: ��������������������������������������� Build failed on 20/12/2019 18:43:45. [Pipeline] } |
I am getting exactly the same in TeamCity. Runs fine if I call it in PowerShell, however in a TeamCity build the same error as stated above
|
The parsing error is raised when the result us parsedt. This result is normally a Json object if the command went well but when there is an error it is not the case. Can you test with the GitVersion.exe executable and run it in console. |
|
I have the same issue when running from Teamcity agent on Linux. |
So far I can say that the issue is either that the repository is private (needs authorization), or that you’re building on TeamCity, and the branch cannot be determined (probably detached). For the latter, you can try to set |
Got the "same" problem here: An easy step to reproduce : FROM mcr.microsoft.com/dotnet/core/sdk:3.1
WORKDIR /app
COPY . . docker build -t test .
docker run -it --rm test
chmod +x ./build.sh
./build.sh Compile |
I'm using NUKE build system and I resolved this issue by manually editing _build.csproj and updating GitVersion.Tool to version 5.1.3. Also in Build.cs specify target framework for GitVersion:
|
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Have everyone properly normalized the Git repository before executing GitVersion, as per #2194? For TeamCity, this means you will have to set |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Uh oh!
There was an error while loading. Please reload this page.
I'm using GitVersion.Tool 5.1.1 (dotnet core) inside my PowerShell build script and it crashes when running in Jenkins multipipeline job. It throws error:
`
It happens both on Jenkins and TeamCity.
The text was updated successfully, but these errors were encountered: