• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Win-7 X64, Jenkins 2.46.3, Git plugin 3.3.0, Bitbucket pluin 1.1.5

      Jenkins Freestyle job.
      Builds .net app using msbuild. – Pass
      Add & Commit the changes. – Pass
      Push commit to repo. – Stucks

      Logs: 
      -----------------------------------------------------------------------------------------------------------------------
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB
      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Done
      Cloning the remote Git repository
      Cloning repository http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git
       > git.exe init C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB # timeout=10
      Fetching upstream changes from http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git
       > git.exe --version # timeout=10
       > git.exe fetch --tags --progress http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git +refs/heads/*:refs/remotes/origin/*
       > git.exe config remote.origin.url http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git # timeout=10
       > git.exe config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git.exe config remote.origin.url http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git # timeout=10
      Fetching upstream changes from http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git
       > git.exe fetch --tags --progress http://*MYREPOSERVER*:7990/scm/doc/applicationsrc_repo.git +refs/heads/*:refs/remotes/origin/*
       > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
       > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
      Checking out Revision e71d654e4108190a7602d474a398faebe88c91bf (refs/remotes/origin/master)
       > git.exe config core.sparsecheckout # timeout=10
       > git.exe checkout -f e71d654e4108190a7602d474a398faebe88c91bf
       > git.exe rev-list e71d654e4108190a7602d474a398faebe88c91bf # timeout=10
      Path To MSBuild.exe: C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe
      Executing the command cmd.exe /C " chcp 1252 && "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" WebAppDemoApp.sln " && exit %%ERRORLEVEL%% from C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB
      [WebAppDemo_BB] $ cmd.exe /C " chcp 1252 && "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" WebAppDemoApp.sln " && exit %%ERRORLEVEL%%
      Active code page: 1252
      Microsoft (R) Build Engine version 14.0.25420.1
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
      Build started 6/5/2017 6:14:35 PM.
      Project "C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp.sln" on node 1 (default targets).
      ValidateSolutionConfiguration:
        Building solution configuration "Debug|Any CPU".
      Project "C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp.sln" (1) is building "C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp\WebAppDemoApp.csproj" (2) on node 1 (default targets).
      GenerateTargetFrameworkMonikerAttribute:
      Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
      CoreCompile:
        C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Net.Compilers.1.0.0\build\..\tools\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.1\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Identity.Owin.2.2.1\lib\net45\Microsoft.AspNet.Identity.Owin.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Host.SystemWeb.3.0.1\lib\net45\Microsoft.Owin.Host.SystemWeb.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.Facebook.3.0.1\lib\net45\Microsoft.Owin.Security.Facebook.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.Google.3.0.1\lib\net45\Microsoft.Owin.Security.Google.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.MicrosoftAccount.3.0.1\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Owin.Security.Twitter.3.0.1\lib\net45\Microsoft.Owin.Security.Twitter.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\mscorlib.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Owin.1.0\lib\net40\Owin.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Configuration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.WebRequest.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Runtime.Serialization.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.Abstractions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.ApplicationServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebApi.Owin.5.2.3\lib\net45\System.Web.Http.Owin.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.Routing.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.Linq.dll" /reference:"C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\packages\WebGrease.1.5.2\lib\WebGrease.dll" /debug+ /debug:full /optimize- /out:obj\Debug\WebAppDemoApp.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /target:library /utf8output App_Start\BundleConfig.cs App_Start\FilterConfig.cs App_Start\IdentityConfig.cs App_Start\RouteConfig.cs App_Start\Startup.Auth.cs App_Start\WebApiConfig.cs Areas\HelpPage\ApiDescriptionExtensions.cs Areas\HelpPage\App_Start\HelpPageConfig.cs Areas\HelpPage\Controllers\HelpController.cs Areas\HelpPage\HelpPageAreaRegistration.cs Areas\HelpPage\HelpPageConfigurationExtensions.cs Areas\HelpPage\ModelDescriptions\CollectionModelDescription.cs Areas\HelpPage\ModelDescriptions\ComplexTypeModelDescription.cs Areas\HelpPage\ModelDescriptions\DictionaryModelDescription.cs Areas\HelpPage\ModelDescriptions\EnumTypeModelDescription.cs Areas\HelpPage\ModelDescriptions\EnumValueDescription.cs Areas\HelpPage\ModelDescriptions\IModelDocumentationProvider.cs Areas\HelpPage\ModelDescriptions\KeyValuePairModelDescription.cs Areas\HelpPage\ModelDescriptions\ModelDescription.cs Areas\HelpPage\ModelDescriptions\ModelDescriptionGenerator.cs Areas\HelpPage\ModelDescriptions\ModelNameAttribute.cs Areas\HelpPage\ModelDescriptions\ModelNameHelper.cs Areas\HelpPage\ModelDescriptions\ParameterAnnotation.cs Areas\HelpPage\ModelDescriptions\ParameterDescription.cs Areas\HelpPage\ModelDescriptions\SimpleTypeModelDescription.cs Areas\HelpPage\Models\HelpPageApiModel.cs Areas\HelpPage\SampleGeneration\HelpPageSampleGenerator.cs Areas\HelpPage\SampleGeneration\HelpPageSampleKey.cs Areas\HelpPage\SampleGeneration\ImageSample.cs Areas\HelpPage\SampleGeneration\InvalidSample.cs Areas\HelpPage\SampleGeneration\ObjectGenerator.cs Areas\HelpPage\SampleGeneration\SampleDirection.cs Areas\HelpPage\SampleGeneration\TextSample.cs Areas\HelpPage\XmlDocumentationProvider.cs Controllers\AccountController.cs Controllers\HomeController.cs Controllers\ValuesController.cs Global.asax.cs Models\AccountBindingModels.cs Models\AccountViewModels.cs Models\IdentityModels.cs Properties\AssemblyInfo.cs Providers\ApplicationOAuthProvider.cs Results\ChallengeResult.cs Startup.cs "C:\windows\TEMP\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs"
      
      CopyFilesToOutputDirectory:
        Copying file from "obj\Debug\WebAppDemoApp.dll" to "bin\WebAppDemoApp.dll".
        WebAppDemoApp -> C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp\bin\WebAppDemoApp.dll
        Copying file from "obj\Debug\WebAppDemoApp.pdb" to "bin\WebAppDemoApp.pdb".
      Done Building Project "C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp\WebAppDemoApp.csproj" (default targets).
      Done Building Project "C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB\WebAppDemoApp.sln" (default targets).
      
      Build succeeded.
          0 Warning(s)
          0 Error(s)
      
      Time Elapsed 00:00:14.84
      [WebAppDemo_BB] $ cmd /c call C:\windows\TEMP\hudson5454792597764725306.bat
      
      C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB>git checkout master 
      M	WebAppDemoApp/bin/WebAppDemoApp.dll
      M	WebAppDemoApp/bin/WebAppDemoApp.pdb
      M	WebAppDemoApp/obj/Debug/WebAppDemoApp.csprojResolveAssemblyReference.cache
      M	WebAppDemoApp/obj/Debug/WebAppDemoApp.dll
      M	WebAppDemoApp/obj/Debug/WebAppDemoApp.pdb
      Branch master set up to track remote branch master from origin.
      Switched to a new branch 'master'
      
      C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB>git commit -am "Build 13 Commit" 
      [master 5d15423] Build 13 Commit
       Committer: REHMANA01
      Your name and email address were configured automatically based
      on your username and hostname. Please check that they are accurate.
      You can suppress this message by setting them explicitly:
      
          git config --global user.name "Your Name"
          git config --global user.email you@example.com
      
      After doing this, you may fix the identity used for this commit with:
      
          git commit --amend --reset-author
      
       5 files changed, 0 insertions(+), 0 deletions(-)
      
      C:\Program Files (x86)\Jenkins\workspace\WebAppDemo_BB>git push -u origin master 
      
      

      ------------------------------------------------------------------------------------------------------------------------
      Build goes on till it times out.
      I have tried changing repositories as well.
      Initially my repo was on github where i faced the same issue, later moved the repo to local bitbucket setup. Both were public repo.

          [JENKINS-44682] Builds fail as git push gets stuck

          Azizul Rehman added a comment -

          I have configured the credentials as well (Which i assumed were not required with public repos) but still same state.
          Configured the Global config in Jenkins Manager as well, still issue persists (Had tried these earlier as well.)

          ----------------------Logs---------------------------
          Cloning the remote Git repository
          Cloning repository http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git
          > git.exe init C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB # timeout=10
          Fetching upstream changes from http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git
          > git.exe --version # timeout=10
          using GIT_ASKPASS to set credentials
          > git.exe fetch --tags --progress http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git +refs/heads/:refs/remotes/origin/
          > git.exe config remote.origin.url http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git # timeout=10
          > git.exe config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
          > git.exe config remote.origin.url http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git # timeout=10
          Fetching upstream changes from http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git
          using GIT_ASKPASS to set credentials
          > git.exe fetch --tags --progress http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git +refs/heads/:refs/remotes/origin/
          > git.exe rev-parse "refs/remotes/origin/master^

          {commit}" # timeout=10
          > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}

          " # timeout=10
          Checking out Revision e71d654e4108190a7602d474a398faebe88c91bf (refs/remotes/origin/master)
          > git.exe config core.sparsecheckout # timeout=10
          > git.exe checkout -f e71d654e4108190a7602d474a398faebe88c91bf
          > git.exe rev-list e71d654e4108190a7602d474a398faebe88c91bf # timeout=10

          ------------------

          Done Building Project "C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB\DockerDemoApp.sln" (default targets).

          Build succeeded.
          0 Warning(s)
          0 Error(s)

          Time Elapsed 00:00:07.21
          [DockerDemo_BB] $ cmd /c call C:\windows\TEMP\hudson6605637786756840710.bat

          C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git checkout master
          M DockerDemoApp/bin/DockerDemoApp.dll
          M DockerDemoApp/bin/DockerDemoApp.pdb
          M DockerDemoApp/obj/Debug/DockerDemoApp.csprojResolveAssemblyReference.cache
          M DockerDemoApp/obj/Debug/DockerDemoApp.dll
          M DockerDemoApp/obj/Debug/DockerDemoApp.pdb
          Branch master set up to track remote branch master from origin.
          Switched to a new branch 'master'

          C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git commit -am "Build 13 Commit"
          [master 04eb9fc] Build 13 Commit
          5 files changed, 0 insertions, 0 deletions

          C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git push -u origin master
          ------------------------------

          Sorry but i am unaware of how to post formatted logs.

          Azizul Rehman added a comment - I have configured the credentials as well (Which i assumed were not required with public repos) but still same state. Configured the Global config in Jenkins Manager as well, still issue persists (Had tried these earlier as well.) ---------------------- Logs --------------------------- Cloning the remote Git repository Cloning repository http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git > git.exe init C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB # timeout=10 Fetching upstream changes from http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git > git.exe --version # timeout=10 using GIT_ASKPASS to set credentials > git.exe fetch --tags --progress http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git +refs/heads/ :refs/remotes/origin/ > git.exe config remote.origin.url http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git # timeout=10 > git.exe config --add remote.origin.fetch +refs/heads/ :refs/remotes/origin/ # timeout=10 > git.exe config remote.origin.url http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git # timeout=10 Fetching upstream changes from http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git using GIT_ASKPASS to set credentials > git.exe fetch --tags --progress http://*MYREPO*:7990/scm/doc/applicationsrc_repo.git +refs/heads/ :refs/remotes/origin/ > git.exe rev-parse "refs/remotes/origin/master^ {commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit} " # timeout=10 Checking out Revision e71d654e4108190a7602d474a398faebe88c91bf (refs/remotes/origin/master) > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f e71d654e4108190a7602d474a398faebe88c91bf > git.exe rev-list e71d654e4108190a7602d474a398faebe88c91bf # timeout=10 ------------------ Done Building Project "C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB\DockerDemoApp.sln" (default targets). Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:07.21 [DockerDemo_BB] $ cmd /c call C:\windows\TEMP\hudson6605637786756840710.bat C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git checkout master M DockerDemoApp/bin/DockerDemoApp.dll M DockerDemoApp/bin/DockerDemoApp.pdb M DockerDemoApp/obj/Debug/DockerDemoApp.csprojResolveAssemblyReference.cache M DockerDemoApp/obj/Debug/DockerDemoApp.dll M DockerDemoApp/obj/Debug/DockerDemoApp.pdb Branch master set up to track remote branch master from origin. Switched to a new branch 'master' C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git commit -am "Build 13 Commit" [master 04eb9fc] Build 13 Commit 5 files changed, 0 insertions , 0 deletions C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>git push -u origin master ------------------------------ Sorry but i am unaware of how to post formatted logs.

          Mark Waite added a comment -

          You're trying to push to a remote repository from what appears to be a batch file (C:\windows\temp\..bat). Unless your git repository allows write from unauthenticated users (I've never found a remote git repository that allows write from unauthenticated users), then you'll need to provide credentials somehow to that git command inside that batch file.

          Alternately, you could use the "Git Publisher" post-build action to push the changes to the remote repository. The git publisher will use the credentials you configured.

          This is really a question for the jenkins users mailing list, not for a bug report. It is not a bug. Please move the question to the jenkins users mailing list so that more individuals have the potential to assist with the question.

          Mark Waite added a comment - You're trying to push to a remote repository from what appears to be a batch file (C:\windows\temp\..bat). Unless your git repository allows write from unauthenticated users (I've never found a remote git repository that allows write from unauthenticated users), then you'll need to provide credentials somehow to that git command inside that batch file. Alternately, you could use the "Git Publisher" post-build action to push the changes to the remote repository. The git publisher will use the credentials you configured. This is really a question for the jenkins users mailing list, not for a bug report. It is not a bug. Please move the question to the jenkins users mailing list so that more individuals have the potential to assist with the question.

          Azizul Rehman added a comment -

          The bat file is auto generated by jenkins when i add "execute windows batch command" in my build and not my own so it should be authenticated file (as its part of the same build).
          Further to that, i had tried the git publisher as well but it too fails to push the end result to the repo.

          Azizul Rehman added a comment - The bat file is auto generated by jenkins when i add "execute windows batch command" in my build and not my own so it should be authenticated file (as its part of the same build). Further to that, i had tried the git publisher as well but it too fails to push the end result to the repo.

          Mark Waite added a comment -

          When a git command is executed inside a shell step or inside a batch step, it is not authenticated with the credentials that were passed to the job. Passing credentials to command line git is a complicated process and doesn't generalize to grant permissions to "wrap" the general purpose shell and batch tasks.

          If you have not set the global user name and e-mail address, then the "git commit" step may fail to create the commit. However, the absence of a commit would not have caused the git command to block, so that's not likely to be the cause of this problem.

          Please move this to the jenkins users mailing list.

          Mark Waite added a comment - When a git command is executed inside a shell step or inside a batch step, it is not authenticated with the credentials that were passed to the job. Passing credentials to command line git is a complicated process and doesn't generalize to grant permissions to "wrap" the general purpose shell and batch tasks. If you have not set the global user name and e-mail address, then the "git commit" step may fail to create the commit. However, the absence of a commit would not have caused the git command to block, so that's not likely to be the cause of this problem. Please move this to the jenkins users mailing list.

          Azizul Rehman added a comment - - edited

          As mentioned earlier, the global settings for the user and the email are already configured and credentials for the repo is present in the SCM section. I tried with the git publisher as well but the build threw error at publish and was stuck again ( I had to abort the build after about 2hrs or so).

          Following are the logs of the publisher step:

          Build succeeded.
          0 Warning(s)
          0 Error(s)

          Time Elapsed 00:00:29.23
          [DockerDemo_BB] $ cmd /c call C:\windows\TEMP\hudson7036639040189968965.bat
          C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>exit 0
          > git.exe tag -l jenkins-DockerDemo_BB-35 # timeout=10
          > git.exe tag -a -f -m http://localhost:8080/job/DockerDemo_BB/35/ jenkins-DockerDemo_BB-35 # timeout=10
          Pushing tag jenkins-DockerDemo_BB-35 to repo origin
          > git.exe --version # timeout=10
          using GIT_ASKPASS to set credentials
          > git.exe push http://*MYREPO*@inmualmuat:7990/scm/doc/applicationsrc_repo.git jenkins-DockerDemo_BB-35 -f
          ERROR: Timeout after 10 minutes
          ERROR: Failed to join a process
          org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at envvar-cmdline.cpp:151
          at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
          at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
          at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
          at hudson.util.ProcessTree$Windows$1.getArguments(ProcessTree.java:444)
          at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56)
          at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:242)
          at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
          at hudson.util.ProcessTree.killAll(ProcessTree.java:145)
          at hudson.Proc$LocalProc.destroy(Proc.java:380)
          at hudson.Proc$LocalProc.kill(Proc.java:372)
          at hudson.Proc$1.run(Proc.java:159)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          ------------------------------------------------------

          As i can see, even publisher is creating a bat file to execute it commands.

           The global credentials are also configured.

          Azizul Rehman added a comment - - edited As mentioned earlier, the global settings for the user and the email are already configured and credentials for the repo is present in the SCM section. I tried with the git publisher as well but the build threw error at publish and was stuck again ( I had to abort the build after about 2hrs or so). Following are the logs of the publisher step: Build succeeded. 0 Warning(s) 0 Error(s) Time Elapsed 00:00:29.23 [DockerDemo_BB] $ cmd /c call C:\windows\TEMP\hudson7036639040189968965.bat C:\Program Files (x86)\Jenkins\workspace\DockerDemo_BB>exit 0 > git.exe tag -l jenkins-DockerDemo_BB-35 # timeout=10 > git.exe tag -a -f -m http://localhost:8080/job/DockerDemo_BB/35/ jenkins-DockerDemo_BB-35 # timeout=10 Pushing tag jenkins-DockerDemo_BB-35 to repo origin > git.exe --version # timeout=10 using GIT_ASKPASS to set credentials > git.exe push http://*MYREPO*@inmualmuat:7990/scm/doc/applicationsrc_repo.git jenkins-DockerDemo_BB-35 -f ERROR: Timeout after 10 minutes ERROR: Failed to join a process org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at envvar-cmdline.cpp:151 at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126) at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102) at hudson.util.ProcessTree$Windows$1.getArguments(ProcessTree.java:444) at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56) at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:242) at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425) at hudson.util.ProcessTree.killAll(ProcessTree.java:145) at hudson.Proc$LocalProc.destroy(Proc.java:380) at hudson.Proc$LocalProc.kill(Proc.java:372) at hudson.Proc$1.run(Proc.java:159) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ------------------------------------------------------ As i can see, even publisher is creating a bat file to execute it commands.  The global credentials are also configured.

          Azizul Rehman added a comment -

          Still facing issue even after all the suggested configurations.

          Azizul Rehman added a comment - Still facing issue even after all the suggested configurations.

          Mark Waite added a comment -

          There are so many users of the plugin using git publisher to push from Windows machines to git repositories that I can't (yet) accept this is a plugin bug. I firmly believe it is a configuration error.

          Typically, configuration errors are best discovered by attempting to duplicate the problem in a "fresh" environment.

          Please provide detailed steps so that someone else can duplicate the problem before you reopen the bug report.

          Mark Waite added a comment - There are so many users of the plugin using git publisher to push from Windows machines to git repositories that I can't (yet) accept this is a plugin bug. I firmly believe it is a configuration error. Typically, configuration errors are best discovered by attempting to duplicate the problem in a "fresh" environment. Please provide detailed steps so that someone else can duplicate the problem before you reopen the bug report.

          Azizul Rehman added a comment -

          I have tried this on three different machines and the end result was same.

          Azizul Rehman added a comment - I have tried this on three different machines and the end result was same.

          Mark Waite added a comment -

          I attempted to duplicate the bug you've reported and was unsuccessful. The steps I took included:

          1. Create a freestyle job named "JENKINS-44682-bitbucket-push-fails-from-windows"
          2. Restrict that job to only run on agents with the label "windows"
          3. Use git repository "https://bitbucket.org/markewaite/jenkins-bugs.git" (http authentication, username / password credential)
          4. Use my username/password credential named "bitbucket-username-password"
          5. Use refspec "+refs/heads/JENKINS-44682:refs/remotes/origin/JENKINS-44682" so that data transfer can be reduced by "honor refspec"
          6. Define branch to build as "JENKINS-44682"
          7. Use advanced clone option "honor refspec" to reduce data transfer to only the specific branch
          8. Use advanced clone option "Do not fetch tags" to reduce data transfer
          9. Add "Checkout to local branch" and configure to checkout to a branch named "JENKINS-44682"
          10. Add "Prune stale remote tracking branches"
          11. Add "Use commit author in changelog"
          12. Add "Polling ignores commits from certain users" and include the user that runs my Jenkins server in the exclusion
          13. Enable scm polling on a 2 minute interval ("H/2 * * * *")
          14. Add an ant build step which runs the target "info-and-increment" (increments a build number in a file in the workspace)
          15. Add a "Git Publisher" post build action
          16. Configure the git publisher to push the branch "JENKINS-44682" to the remote named "orign" only if the build succeeds
          17. Run the job and see that it pushes the change to the bitbucket.org repository

          Please describe in precise detail the steps you've taken that show the problem.  I've attached the config.xml file of the job which I used that failed to duplicate the problem.

          Mark Waite added a comment - I attempted to duplicate the bug you've reported and was unsuccessful. The steps I took included: Create a freestyle job named " JENKINS-44682 -bitbucket-push-fails-from-windows " Restrict that job to only run on agents with the label "windows" Use git repository "https://bitbucket.org/markewaite/jenkins-bugs.git" (http authentication, username / password credential) Use my username/password credential named "bitbucket-username-password" Use refspec " +refs/heads/ JENKINS-44682 :refs/remotes/origin/ JENKINS-44682 " so that data transfer can be reduced by "honor refspec" Define branch to build as " JENKINS-44682 " Use advanced clone option "honor refspec" to reduce data transfer to only the specific branch Use advanced clone option "Do not fetch tags" to reduce data transfer Add "Checkout to local branch" and configure to checkout to a branch named " JENKINS-44682 " Add "Prune stale remote tracking branches" Add "Use commit author in changelog" Add "Polling ignores commits from certain users" and include the user that runs my Jenkins server in the exclusion Enable scm polling on a 2 minute interval ("H/2 * * * *") Add an ant build step which runs the target "info-and-increment" (increments a build number in a file in the workspace) Add a "Git Publisher" post build action Configure the git publisher to push the branch " JENKINS-44682 " to the remote named "orign" only if the build succeeds Run the job and see that it pushes the change to the bitbucket.org repository Please describe in precise detail the steps you've taken that show the problem.  I've attached the config.xml file of the job which I used that failed to duplicate the problem.

          Azizul Rehman added a comment -

          Finally got the git push working.

          Had to remove the git for windows setup, cleanup the machine and use the jenkins.war file to run jenkins.
          Before moving to the .war file, i tried with multiple machines (uninstalling and cleaning the machine and reinstalling the Jenkins for windows setup.) but all in vain and had to move to Jenkins.war as a final resort.

          So, it seems that the issue might be in the Jenkins-Windows itself instead if the plugin.

          Azizul Rehman added a comment - Finally got the git push working. Had to remove the git for windows setup, cleanup the machine and use the jenkins.war file to run jenkins. Before moving to the .war file, i tried with multiple machines (uninstalling and cleaning the machine and reinstalling the Jenkins for windows setup.) but all in vain and had to move to Jenkins.war as a final resort. So, it seems that the issue might be in the Jenkins-Windows itself instead if the plugin.

            Unassigned Unassigned
            rehmana1 Azizul Rehman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: