{"action":"created","issue":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/916","repository_url":"https://api.github.com/repos/GitTools/GitVersion","labels_url":"https://api.github.com/repos/GitTools/GitVersion/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/916/comments","events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/916/events","html_url":"https://github.com/GitTools/GitVersion/issues/916","id":162700328,"number":916,"title":"Unable to increment version with dynamic repository","user":{"login":"xpicio","id":2994719,"avatar_url":"https://avatars.githubusercontent.com/u/2994719?v=3","gravatar_id":"","url":"https://api.github.com/users/xpicio","html_url":"https://github.com/xpicio","followers_url":"https://api.github.com/users/xpicio/followers","following_url":"https://api.github.com/users/xpicio/following{/other_user}","gists_url":"https://api.github.com/users/xpicio/gists{/gist_id}","starred_url":"https://api.github.com/users/xpicio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpicio/subscriptions","organizations_url":"https://api.github.com/users/xpicio/orgs","repos_url":"https://api.github.com/users/xpicio/repos","events_url":"https://api.github.com/users/xpicio/events{/privacy}","received_events_url":"https://api.github.com/users/xpicio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-28T14:29:54Z","updated_at":"2016-06-29T11:15:41Z","closed_at":null,"body":"Hello i'm trying to increment the version on a TeamCity build task through dynamic repository but i'm not able to increase the version over 0.2.0 :( Following my actual setup:\r\n\r\nGitVersion 3.5.4 command from TeamCity task:\r\n```\r\nGitVersion /url 'http://git.******.com/microservices/production-unirepo-converter-service.git' /u 'devops' /p '******' /b 'refs/heads/master' /output buildserver /updateassemblyinfo true\r\n```\r\n\r\nGit commit message:\r\n```\r\nGitVersion config file name was wrong\r\n+semver:minor\r\n```\r\n\r\nGitVersion config file GitVersionConfig.yaml:\r\n```\r\ntag-prefix: '[build-]'\r\nmajor-version-bump-message: '\\+semver:\\s?(breaking|major)'\r\nminor-version-bump-message: '\\+semver:\\s?(feature|minor)'\r\npatch-version-bump-message: '\\+semver:\\s?(fix|patch)'\r\ncommit-message-incrementing: Enabled\r\n```\r\n\r\nTeamCity 9.1.5 log:\r\n```\r\n[14:17:30]Step 1/6: GitVersion (Command Line) (1s)\r\n[14:17:30][Step 1/6] Starting: C:\\Windows\\system32\\cmd.exe /c GitVersion /url 'http://git.******.com/microservices/production-unirepo-converter-service.git' /u 'devops' /p '******' /b 'refs/heads/master' /output buildserver /updateassemblyinfo true\r\n[14:17:30][Step 1/6] in directory: C:\\BuildAgent\\work\\5d7aa9d5cac11a1b\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:31] Working directory: C:\\BuildAgent\\work\\5d7aa9d5cac11a1b\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:32] Applicable build agent found: 'TeamCity'.\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:32] Branch from build environment: refs/heads/master\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:32] Creating dynamic repository at 'C:\\BuildAgent\\temp\\buildTmp\\production-unirepo-converter-service'\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:32] Setting up credentials using name 'devops'\r\n[14:17:30][Step 1/6] INFO [06/28/16 14:17:30:32] Retrieving git info from url 'http://git.------.com/microservices/production-unirepo-converter-service.git'\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:10] One remote found (origin -> 'http://git.------.com/microservices/production-unirepo-converter-service.git').\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:10] Fetching from remote 'origin' using the following refspecs: +refs/heads/*:refs/remotes/origin/*.\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:32] Updating local branch refs/heads/master to point at 5c5f84563a9e6886ea3e06f046ea392fcc7f3087\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:36] Creating local branch from remote tracking 'refs/remotes/origin/develop'.\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:38] Skipping update of 'refs/remotes/origin/master' as it already matches the remote ref.\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:38] HEAD points at branch 'refs/heads/master'.\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:38] Project root is: C:\\BuildAgent\\work\\5d7aa9d5cac11a1b\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:52] Using latest commit on specified branch\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:54] Running against branch: master (5c5f84563a9e6886ea3e06f046ea392fcc7f3087)\r\n[14:17:31][Step 1/6] INFO [06/28/16 14:17:31:55] Begin: Calculating base versions\r\n[14:17:31][Step 1/6]   INFO [06/28/16 14:17:31:59] Fallback base version: 0.1.0 with commit count source 2f1f86b6aa312649a50209308d812c0df34f94fd\r\n[14:17:32][Step 1/6]   INFO [06/28/16 14:17:31:79] Base version used: Fallback base version: 0.1.0 with commit count source 2f1f86b6aa312649a50209308d812c0df34f94fd\r\n[14:17:32][Step 1/6] INFO [06/28/16 14:17:31:79] End: Calculating base versions (Took: 241.49ms)\r\n[14:17:32][Step 1/6] INFO [06/28/16 14:17:31:82] 69 commits found between 2f1f86b6aa312649a50209308d812c0df34f94fd and 5c5f84563a9e6886ea3e06f046ea392fcc7f3087\r\n[14:17:32][Step 1/6] INFO [06/28/16 14:17:31:83] Applicable build agent found: 'TeamCity'.\r\n[14:17:32][Step 1/6] Executing GenerateSetVersionMessage for 'TeamCity'.\r\n[14:17:32][Step 1/6] ##teamcity[buildNumber '0.2.0+69']\r\n[14:17:32][Step 1/6] Executing GenerateBuildLogOutput for 'TeamCity'.\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.Major' value='0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.Major' value='0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.Minor' value='2']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.Minor' value='2']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.Patch' value='0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.Patch' value='0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.PreReleaseTag' value='']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.PreReleaseTag' value='']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.PreReleaseTagWithDash' value='']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.PreReleaseTagWithDash' value='']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.BuildMetaData' value='69']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.BuildMetaData' value='69']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.BuildMetaDataPadded' value='0069']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.BuildMetaDataPadded' value='0069']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.FullBuildMetaData' value='69.Branch.master.Sha.5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.FullBuildMetaData' value='69.Branch.master.Sha.5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.MajorMinorPatch' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.MajorMinorPatch' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.SemVer' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.SemVer' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.LegacySemVer' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.LegacySemVer' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.LegacySemVerPadded' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.LegacySemVerPadded' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.AssemblySemVer' value='0.2.0.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.AssemblySemVer' value='0.2.0.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.FullSemVer' value='0.2.0+69']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.FullSemVer' value='0.2.0+69']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.InformationalVersion' value='0.2.0+69.Branch.master.Sha.5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.InformationalVersion' value='0.2.0+69.Branch.master.Sha.5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.BranchName' value='master']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.BranchName' value='master']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.Sha' value='5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.Sha' value='5c5f84563a9e6886ea3e06f046ea392fcc7f3087']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.NuGetVersionV2' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.NuGetVersionV2' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.NuGetVersion' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.NuGetVersion' value='0.2.0']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='GitVersion.CommitDate' value='2016-06-28']\r\n[14:17:32][Step 1/6] ##teamcity[setParameter name='system.GitVersion.CommitDate' value='2016-06-28']\r\n[14:17:32][Step 1/6] Updating assembly info files\r\n[14:17:32][Step 1/6] Process exited with code 0\r\n```\r\n\r\nThe latest tag is:\r\n```\r\nbuild-0.2.0+69\r\n```"},"comment":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/comments/229327416","html_url":"https://github.com/GitTools/GitVersion/issues/916#issuecomment-229327416","issue_url":"https://api.github.com/repos/GitTools/GitVersion/issues/916","id":229327416,"user":{"login":"xpicio","id":2994719,"avatar_url":"https://avatars.githubusercontent.com/u/2994719?v=3","gravatar_id":"","url":"https://api.github.com/users/xpicio","html_url":"https://github.com/xpicio","followers_url":"https://api.github.com/users/xpicio/followers","following_url":"https://api.github.com/users/xpicio/following{/other_user}","gists_url":"https://api.github.com/users/xpicio/gists{/gist_id}","starred_url":"https://api.github.com/users/xpicio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpicio/subscriptions","organizations_url":"https://api.github.com/users/xpicio/orgs","repos_url":"https://api.github.com/users/xpicio/repos","events_url":"https://api.github.com/users/xpicio/events{/privacy}","received_events_url":"https://api.github.com/users/xpicio/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T11:15:41Z","updated_at":"2016-06-29T11:15:41Z","body":"@asbjornu this is the error:\r\n\r\n```\r\n[13:04:52][Step 2/7] ERROR [06/29/16 13:04:52:00] An unexpected error occurred:\r\n[13:04:52][Step 2/7] System.Exception: There was an unknown problem with the Git repository you provided ---> LibGit2Sharp.LibGit2SharpException: Unsupported URL protocol\r\n[13:04:52][Step 2/7]    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)\r\n[13:04:52][Step 2/7]    at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result)\r\n[13:04:52][Step 2/7]    at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)\r\n[13:04:52][Step 2/7]    at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)\r\n[13:04:52][Step 2/7]    at GitVersion.GitPreparer.CloneRepository(String repositoryUrl, String gitDirectory, AuthenticationInfo authentication)\r\n[13:04:52][Step 2/7]    --- End of inner exception stack trace ---\r\n[13:04:52][Step 2/7]    at GitVersion.GitPreparer.CloneRepository(String repositoryUrl, String gitDirectory, AuthenticationInfo authentication)\r\n[13:04:52][Step 2/7]    at GitVersion.GitPreparer.CreateDynamicRepository(String targetPath, AuthenticationInfo authentication, String repositoryUrl, String targetBranch, Boolean noFetch)\r\n[13:04:52][Step 2/7]    at GitVersion.GitPreparer.Initialise(Boolean normaliseGitDirectory, String currentBranch)\r\n[13:04:52][Step 2/7]    at GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)\r\n[13:04:52][Step 2/7]    at GitVersion.SpecifiedArgumentRunner.Run(Arguments arguments, IFileSystem fileSystem)\r\n[13:04:52][Step 2/7]    at GitVersion.Program.VerifyArgumentsAndRun()\r\n```\r\n\r\nI have tried different kind of URL but i think that `https://git.******.com/microservices/production-unirepo-converter-service.git` is a good URL 😄 "}}
{"actor":{"display_login":"xpicio"}}