hudson.plugins.git.GitException: failed REJECTED_OTHER_REASON for 'refs/tags/test-tag:refs/heads/test-tag' refspec 'test-tag' to

Jenkins JIRA | Alexander Komarov | 9 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Git Publisher Post-Build step fails to push tags. As outlined here, downgrading to earlier versions of these plugins makes this work: * Git plugin : 2.4.0 works, 2.5.3 does not work * Git client plugin: 1.18.0 works, 1.19.7 does not work (probably versions in between do not work either. I did not test any other combinations) h2. Steps to reproduce: # Create a job that clones a github repo, use credentials with a key for a user that has push privileges in github. Additional behaviors: checkout to local branch "master", Wipe and force clone. # Add a Git Publisher step, add tag with arbitrary name, check create and update checkboxes # No other job configuration items are necessary With versions labeled "does not work" above, job fails with the following error: {quote}*Wiping out workspace first. Cloning the remote Git repository remote: Counting objects Receiving objects Resolving deltas Updating references Checking out Revision be5c9260a46cefcd37a5ef23ed04d112dc4e4c47 (refs/remotes/origin/master) Pushing tag test-tag to repo origin RefSpec is "refs/tags/test-tag:refs/heads/test-tag". Opening connection Counting objects Finding sources Writing objects ERROR: Failed to push tag test-tag to origin hudson.plugins.git.GitException: failed REJECTED_OTHER_REASON for 'refs/tags/test-tag:refs/heads/test-tag' refspec 'test-tag' to at org.jenkinsci.plugins.gitclient.JGitAPIImpl$9.execute( at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$ at hudson.remoting.UserRequest.perform( at hudson.remoting.UserRequest.perform( at hudson.remoting.Request$ at hudson.remoting.InterceptingExecutorService$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at hudson.remoting.Engine$1$ at at ......remote call to tc-docker-swarm-01-5209d3c4(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace( at hudson.remoting.UserResponse.retrieve( at at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke( at com.sun.proxy.$Proxy66.execute(Unknown Source) at hudson.plugins.git.GitPublisher.perform( at hudson.tasks.BuildStepMonitor$3.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps( at hudson.model.Build$BuildExecution.post2( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at Build step 'Git Publisher' marked build as failure*{quote} With the older versions specified, tag is pushed successfully.

    Jenkins JIRA | 9 months ago | Alexander Komarov
    hudson.plugins.git.GitException: failed REJECTED_OTHER_REASON for 'refs/tags/test-tag:refs/heads/test-tag' refspec 'test-tag' to
  2. 0

    [JIRA] (JENKINS-37120) Git Publisher fails to push tags with REJECTED_OTHER_REASON

    Google Groups | 9 months ago | (JIRA)
    hudson.plugins.git.GitException: failed REJECTED_OTHER_REASON for 'refs/tags/test-tag:refs/heads/test-tag' refspec 'test-tag' to
  3. 0

    Jenkins hangs on Mac slave when cloning from Gitlab instance

    Stack Overflow | 3 years ago | Bryan Sills
    hudson.plugins.git.GitException: Command "git fetch --tags --progress git@<GITLAB>:<USERNAME>/<REPO>.git +refs/heads/*:refs/remotes/origin/*" returned status code 143: stdout: stderr:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Occasional git checkout error at

    GitHub | 3 years ago | mboersma
    hudson.plugins.git.GitException: Could not checkout null with start point 90e9e3f45ce232d4a3602f0232863e4317fc6892

    1 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 REJECTED_OTHER_REASON for 'refs/tags/test-tag:refs/heads/test-tag' refspec 'test-tag' to

      at org.jenkinsci.plugins.gitclient.JGitAPIImpl$9.execute()
    2. org.jenkinsci.plugins
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl$9.execute(
      2. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$
      3. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$
      3 frames
    3. Hudson :: Remoting Layer
      1. hudson.remoting.UserRequest.perform(
      2. hudson.remoting.UserRequest.perform(
      3. hudson.remoting.Request$
      4. hudson.remoting.InterceptingExecutorService$
      4 frames
    4. Java RT
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(
      3. java.util.concurrent.ThreadPoolExecutor$
      3 frames
    5. Hudson :: Remoting Layer
      1. hudson.remoting.Engine$1$
      1 frame
    6. Java RT
      1 frame