Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38138

Git plugin over HTTP with TFS 2015 causes authorization error

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • git-plugin
    • jenkinsci/jenkins:2.21 (Docker image)

      Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

      The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

      I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

      Using pipeline plugin.

      Started by user anonymous
      [Pipeline] node
      Running on master in /var/jenkins_home/workspace/API tests
      [Pipeline]

      { [Pipeline] git > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url http://project/myprojectA.git # timeout=10 Fetching upstream changes from http://project/myprojectA.git > git --version # timeout=10 using GIT_ASKPASS to set credentials SVCACC service account > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: Authentication failed for 'http://project/myprojectA.git/' at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795) ... 13 more [Pipeline] }

      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: null
      Finished: FAILURE

          [JENKINS-38138] Git plugin over HTTP with TFS 2015 causes authorization error

          Alex Ellis created issue -
          Alex Ellis made changes -
          Description Original: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {{Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials BMSTFS service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          }}
          New: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {{
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials BMSTFS service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          }}
          Alex Ellis made changes -
          Description Original: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {{
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials BMSTFS service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          }}
          New: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.


          {{Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          }}
          James Dumay made changes -
          Description Original: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.


          {{Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          }}
          New: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {quote}
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          {{quote}}
          James Dumay made changes -
          Description Original: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {quote}
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          {{quote}}
          New: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {quote}
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          {quote}
          James Dumay made changes -
          Description Original: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.

          {quote}
          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          {quote}
          New: Bug in that our build last worked on 30th August - I've noticed two updates to the plugin since on the 2nd and 10th of September. When I upgrade the plugin for compatibility with Blue Ocean project I started to get this issue.

          The server in question works OK from local machine with same credentials as are saved in Jenkins Credential Manager.

          I've looked at the similar issues which may be around HTTPs certificates - in this instance we're using plain HTTP for this server.

          Using pipeline plugin.


          Started by user anonymous
          [Pipeline] node
          Running on master in /var/jenkins_home/workspace/API tests
          [Pipeline] {
          [Pipeline] git
           > git rev-parse --is-inside-work-tree # timeout=10
          Fetching changes from the remote Git repository
           > git config remote.origin.url http://project/myprojectA.git # timeout=10
          Fetching upstream changes from http://project/myprojectA.git
           > git --version # timeout=10
          using GIT_ASKPASS to set credentials SVCACC service account
           > git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*
          ERROR: Error fetching remote repo 'origin'
          hudson.plugins.git.GitException: Failed to fetch from http://project/myprojectA.git
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
          at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
          at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          at hudson.security.ACL.impersonate(ACL.java:221)
          at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://project/myprojectA.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
          stdout:
          stderr: fatal: Authentication failed for 'http://project/myprojectA.git/'

          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
          at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:795)
          ... 13 more
          [Pipeline] }
          [Pipeline] // node
          [Pipeline] End of Pipeline
          ERROR: null
          Finished: FAILURE
          Mark Waite made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-38194 [ JENKINS-38194 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            markewaite Mark Waite
            alexellisadp Alex Ellis
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: