hudson.plugins.git.GitException: Failed to fetch from https://github.com/(...).git

Google Groups | true...@gmail.com (JIRA) | 4 months ago
  1. 0

    [JIRA] (JENKINS-36849) Github organization folder plugin fetch timeouts

    Google Groups | 4 months ago | true...@gmail.com (JIRA)
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/(...).git
  2. 0

    I have Jenkinsfile with specific node allocation and git checkout on that node, but "github organization folder plugin" is starting build on master and checking out repository on master with default timeout values, before starting my Jenkinsfile script, so I am getting timeouts, because my repository is really big and 10min is simply too small. my Jenkinsfile looks like this: {code:java} node("*Not_master_node*") { checkout( [$class: 'GitSCM', branches: [[name: "${env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'CleanBeforeCheckout'], [$class: 'CheckoutOption', timeout: 180], [$class: 'CloneOption', depth: 0, noTags: false, shallow: true, timeout: *180* ] ], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '...', url: 'https://github.com/...']]] ) } {code} I found difference in output between 'github organization' and 'multibranch pipeline' project build output, and this is propably reason why I am getting timeouts in one and on the other one not. 'github organization': Started by user (...) Connecting to https://api.github.com using (...) > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from 2 remote Git repositories > /usr/bin/git config remote.origin.url https://github.com/(...) # timeout=10 Fetching upstream changes from https://github.com/(...).git > /usr/bin/git --version # timeout=10 using .gitcredentials to set credentials > /usr/bin/git config --local credential.username (...) # timeout=10 > /usr/bin/git config --local credential.helper store --file=/tmp/(...) # timeout=10 > /usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/(...).git +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutes > /usr/bin/git config --local --remove-section credential # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://github.com/(...).git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/(...).git +refs/heads/*:refs/remotes/origin/*" returned status code 143: and the same fragment of log from 'multibranch pipeline': Started by user (...) Setting origin to https://github.com/(...) Fetching origin... > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://github.com/(...) # timeout=10 Fetching upstream changes from https://github.com(...) > /usr/bin/git --version # timeout=10 using .gitcredentials to set credentials > /usr/bin/git config --local credential.username oocpawel # timeout=10 > /usr/bin/git config --local credential.helper store --file=/tmp/(...) # timeout=10 > /usr/bin/git -c core.askpass=true fetch --tags --progress https://github.com/Calnex/CAT +refs/heads/*:refs/remotes/origin/* --depth=1 # timeout=120 the difference is in fetch line, originally 'multibranch pipeline' has timeout 120min and 'github organization' is using default 10min

    Jenkins JIRA | 4 months ago | Pawel Mucha
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/(...).git
  3. 0

    gRPC_interop_experiments is broken

    GitHub | 4 months ago | adelez
    hudson.plugins.git.GitException: Failed to fetch from https://github.com/grpc/grpc.git
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After upgrading to Jenkins 2.7 I'm facing the issue that no longer the build parameters are getting set. E.g. "destinationCommitHash" and all the other build parameters that are usually getting set by this plugin are missing. Hence the Jenkins job will fail as it's not able to pull the PR commit. Before upgrading to Jenkins 2.7 everything worked as expected. {code} > git -c core.askpass=true fetch --tags --progress ssh://git@repo/${destinationRepositoryOwner}/${destinationRepositoryName}.git +refs/pull-requests/*:refs/remotes/origin/pr/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from ssh://git@repo/${destinationRepositoryOwner}/${destinationRepositoryName}.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code}

    Jenkins JIRA | 4 months ago | Subeso Kun
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@repo/${destinationRepositoryOwner}/${destinationRepositoryName}.git
  6. 0

    trouble connecting Jenkins to Bitbucket

    Server Fault | 4 months ago | Josh Fialkoff
    hudson.plugins.git.GitException: Failed to fetch from git@bitbucket.org:forwardjump/[site].git

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Failed to fetch from https://github.com/(...).git

      at hudson.plugins.git.GitSCM.fetchFrom()
    2. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799)
      2. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055)
      3. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086)
      3 frames
    3. org.jenkinsci.plugins
      WorkflowRun.run
      1. org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
      2. org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
      3. org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85)
      4. org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)
      4 frames
    4. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:404)
      2 frames