jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

Error while pushing a tag since Gitlab

Open GBeauny opened this issue 10 years ago • 7 comments

Hello,

I got an error through my jenkins build while pushing a tag since Jenkins, have you an idea why?

Here my output :

git rev-parse origin/refs/tags/v0.0.1^{commit} # timeout=10 FATAL: Command "git rev-parse origin/refs/tags/v0.0.1^{commit}" returned status code 128: stdout: origin/refs/tags/v0.0.1^{commit}

stderr: fatal: ambiguous argument 'origin/refs/tags/v0.0.1^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions

hudson.plugins.git.GitException: Command "git rev-parse origin/refs/tags/v0.0.1^{commit}" returned status code 128: stdout: origin/refs/tags/v0.0.1^{commit}

stderr: fatal: ambiguous argument 'origin/refs/tags/v0.0.1^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions

Plugin version i'm using: 1.2.2 Jenkins version: 1.610 Git version: 1.7.10.4

Thanks guys.

GBeauny avatar Jul 29 '15 17:07 GBeauny

Nobody there?

GBeauny avatar Aug 07 '15 09:08 GBeauny

Hi @GBeauny4D what values did you set for the git configuration in jenkins?

timols avatar Aug 08 '15 00:08 timols

Hello Timols, sorry for late answers,

My values are the following ones :

First repo :

  • Repository URL : My git url
  • My credential
  • Advanced : Name : origin, Refspec : +refs/heads/:refs/remotes/origin/ +refs/pull/:refs/remotes/origin/pr/

Second repo :

  • Repository URL : ${gitlabSourceRepoURL}
  • Name : ${gitlabSourceRepoName}
  • Refspec : empty
  • Branches to build : ${gitlabSourceRepoName}/${gitlabSourceBranch}
  • Gitlabversion : 7.0

Additional behaviours :

  • Merge before build :

Name of repository : origin -branch to merge to : ${gitlabTargetBranch} -Merge strategy : default -Fast-forward mode : --ff

Thank you,

GBeauny avatar Aug 11 '15 07:08 GBeauny

Ok, this seems to be an underlying git plugin issue. What version of the git plugin are you using?

timols avatar Aug 11 '15 19:08 timols

Git plugin jenkins : last version : 2.4.0. thanks.

GBeauny avatar Aug 11 '15 21:08 GBeauny

I had to open an issue on Jenkins Jira but didn't help : https://issues.jenkins-ci.org/browse/JENKINS-29718. Please, could you try on your side to confirm the issue? Thanks in advance.

GBeauny avatar Aug 11 '15 21:08 GBeauny

Unfortunately @GBeauny I have no particular access to the maintainers of the git plugin. Looks like you were given some suggestions in the issue you opened on how to resolve

timols avatar Aug 12 '15 18:08 timols