[JIRA] (JENKINS-61964) Jenkins Gitlab squash commit error stderr: fatal: ambiguous argument '^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'

3 views
Skip to first unread message

eselep@yahoo.com (JIRA)

unread,
Apr 19, 2020, 10:59:03 AM4/19/20
to jenkinsc...@googlegroups.com
Peter Asuelimen created an issue
 
Jenkins / Bug JENKINS-61964
Jenkins Gitlab squash commit error stderr: fatal: ambiguous argument '^{commit}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'
Issue Type: Bug Bug
Assignee: Marky Jackson
Components: gitlab-plugin
Created: 2020-04-19 14:58
Priority: Major Major
Reporter: Peter Asuelimen

When we merge with squash commit Jenkins fail with the following error
`

 

{{09:27:56 stdout: d8fd53f8c5c1522678cfae1af81f2c61eb1ec8a3^{commit}
09:27:56
09:27:56 stderr: fatal: ambiguous argument 'd8fd53f8c5c1522678cfae1af81f2c61eb1ec8a3^{commit}': unknown revision or path not in the working tree.
09:27:56 Use '--' to separate paths from revisions, like this:
09:27:56 'git <command> [<revision>...][<file>...]```

However when we merge without squash commit, pipeline runs successful
This issue happen when we checkout using gitlab plugin and below is the Jenkins checkout script

checkout changelog: true, poll: true, scm: [
$class: 'GitSCM',
branches: [[name: "origin/${env.gitlabSourceBranch}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: "gitlab-ssh",
url: gitlabTargetRepoSshUrl
]]
]}}

{{}}

But when we merge without squash commit the build is successful. 

Please can you advise?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages