Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:12
    arturcic labeled #2063
  • 09:12
    arturcic milestoned #2063
  • 00:48
    manicprogrammer commented #2201
  • Apr 09 19:19

    arturcic on master

    cleanup GitPreparer (compare)

  • Apr 09 19:04
    warlock2k opened #2230
  • Apr 09 19:04
    warlock2k labeled #2230
  • Apr 09 17:17
    warlock2k commented #2229
  • Apr 09 17:10
    arturcic commented #2229
  • Apr 09 17:09
    warlock2k commented #2229
  • Apr 09 17:03
    arturcic commented #2229
  • Apr 09 17:01
    warlock2k commented #2229
  • Apr 09 16:54
    arturcic commented #2229
  • Apr 09 16:52
    warlock2k commented #2229
  • Apr 09 16:50
    warlock2k commented #2229
  • Apr 09 16:50
    arturcic commented #2229
  • Apr 09 16:48
    warlock2k commented #2229
  • Apr 09 16:47
    stale[bot] closed #1811
  • Apr 09 10:19
    warlock2k commented #2229
  • Apr 09 09:58
    arturcic commented #2229
  • Apr 09 09:56
    arturcic commented #2229
Shereef Marzouk
@Shereef
Hello all
Thanks for creating an amazing tool
I have a question that if someone knows the answer to it would help greatly
Can I turn of version number of git branch and just use it to provide branch name and commit hash info ?
off*
which will make it not require develop or master branch visibility
Tim Long
@NameOfTheDragon
GitVersion just gives you a bunch of properties that you can use or not use as you wish. That data is available in the BranchName and Sha properties. You can ignore what you don't need. What do you mean by "turn off" the version number?
Calvin Dallmore
@aeos
Has anyone successfully used gitversion within Jenkins in Linux agents?
Calvin Dallmore
@aeos
Figured it out
Shereef Marzouk
@Shereef
@NameOfTheDragon I am aware, however, if you don't have a master or develop branch gitversion throws an exception
pre-build exception
System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely
and I am guessing gitversion doesn't need those just to get this branch's info, but it needs them to calculate the version info incase someone incremented the version on master/develop
so my question was can i have it not worry about the version stuff but still embed the hash and branch name ?
Shereef Marzouk
@Shereef
FYI I Finally got this working no need to answer
dorlandode
@dorlandode
Is there a way to get the semantic version with gitflow to increment on commits like it does on the develop branch? It used to do that, but when I moved to code to azure devops and started using the gitversion, it started only incrementing the meta data. This is causing all sorts of havoc for me.
vaishnav-n
@vaishnav-n
to use gitversion in cake with temcity, are there any reference projects to checkout. I am having issues with getting the branch name included with build details.
aegisrox
@aegisrox
Hi all ! How are you! I have a question
I having this error in UseGitVersion 5.2.0: [error]No value was found for the provided environment variable gitversion
I don't know if I'm writing the correct variable name or it is change :(
Josh Williams
@jackjwilliams
Should the TeamCity runner no longer be used? I see it hasn't been updated in 4+ years
Gary Ewan Park
@gep13
@aegisrox am I right in saying that you are using GitHub Actions? If so, you might find this example usage helpful:
I was helping the maintainer get this up and running last night
@jackjwilliams I haven't used the TeamCity Runner in a long time, so I can't speak to whether it is still usable or not.
Tomáš Bednár
@bednart
Hi, we are using gitversion 5.2.4 at gitlab runners and from some time it returns pre-release version while pushing NuGet at tag . It should return NuGetVersionV2=2.1.14 but insted it returns NuGetVersionV2=2.1.0-2-0-14-0001. Any ideas what could be wrong?
Sean Fausett
@gitfool
Looks like you need a prerelease label?
e.g. tag with 2.1.14-pre.1 and increment the last number for each subsequent prerelease
Tomáš Bednár
@bednart
But it shouldn't be pre-release version at all. Gitlab tag is just 2.0.14 so the gitversion should return 2.0.14 (ohh I see mistake in my message with 2.1.14 version). But for some reason gitversion starts to return 2.1.0-2-0-14-0001 instead.
Mubashwer Salman Khurshid
@Mubashwer
Hi. will dotnet-gitversion -output buildserver work when run in Docker?
Artur
@arturcic
It will work if you specify the environment variables needed by any of the build servers we support, when running the docker container
Lisa-Marie Thompson
@lisamariet
Is there a way to get the task to update the buildNumber to use GitVersion.NuGetVersion instead of semver?
Artur
@arturcic
@lisamariet currently there is no way to specify a different variable instead of semver but you can open a feature request on the GitHub repo and we can continue there
anishMarokey
@anishmarokeyGitHub
Hi, I am facing an issue. I have one repository with multiple folder(Library1, Library2), when I try to add a seperate Gitversion.yaml. but its only taking version from one
Gary Ewan Park
@gep13
@anishmarokeyGitHub GitVersion works at the repository level. The Asserted version numbers are for the repository, it doesn't have the concept of multiple versions numbers for different folders within the repository.
jahangir1366arjmand
@jahangir1366arjmand
Hey I don't think it's going
😭
Sean Fausett
@gitfool
@anishmarokeyGitHub take a look at https://github.com/dotnet/Nerdbank.GitVersioning
I would like to control creating a preview package based on a commit message.
That doesn't seem to be possible based on these docs.
It seems this is only possible by creating a new branch called 'preview', is this correct?
Andrew Kondratiuk
@Alantoo
Hi to all. I got error after dotnet publish on dotnet core 3.1.203. Could someone suggest any work around for this please?
Magnus Lindhe
@mgnslndh
Hi! When I use GitVersion on my dev machine I get a branch name excluding the remote but when I run the build on Jenkins (with Git plugin) I get a branch name including the remote (origin). Do you think this is related to GitVersion or related to how the repo was cloned?
I'm looking to get the same results on the build server as on my dev machine. Branch name only including the actual branch name excluding the remote.
Magnus Lindhe
@mgnslndh
Seems to be related to how the branch is named locally. Got it working anyway.
one-random-dev
@one-random-dev

Hello everyone, i have a doubt about gitVersion, did not want to clutter the issues with it
currently we are using a very outdated version but our build server so demands it, nothing I can do currently about it

My question:

on each update on branches release/x.y.z branch gitversion creates a SemVer rc-#

can I get to the count with a simple or not so simple git command such as git rev-list --count or even with a couple of git log commands
this would be really useful as we are managing both legacy .net builds as well as dockerized .net micro services
(in the later the pipeline has no need to use gitversion and it can get quite heavy due to the number of merges on the release branch)
so far I was not able to come to the same number using git commands.

great tool, thanks in advance for any help regarding this

j2lab
@j2lab
I would like to use HighestTagBaseVersionStrategy with git version and Azure pipeline. How can I implement this?
warlock2k
@warlock2k
Are there any breaking changes from 4.0.0 to 5.2.4? The BREAKING_CHANGES.md doesn't seem to be getting updated?
Andrew Kondratiuk
@Alantoo

Hi to all. I got error after dotnet publish on dotnet core 3.1.203. Could someone suggest any work around for this please?

Hi. Maybe anyone could suggest something? Thanks