[JIRA] (JENKINS-50937) GitHub Multibranch PR: unclear error message for PR with merge conflicts

14 views
Skip to first unread message

cleclerc@cloudbees.com (JIRA)

unread,
Apr 23, 2018, 5:52:02 AM4/23/18
to jenkinsc...@googlegroups.com
Cyrille Le Clerc created an issue
 
Jenkins / Improvement JENKINS-50937
GitHub Multibranch PR: unclear error message for PR with merge conflicts
Issue Type: Improvement Improvement
Assignee: Unassigned
Attachments: image-2018-04-23-11-50-14-833.png
Components: pipeline
Created: 2018-04-23 09:51
Environment: Jenkins: 2.107.2
Declarative Pipeline: 1.2.9
Blue Ocean: 1.5.0
Git Plugin: 3.8.0

https://github.com/cyrille-leclerc/my-spring-boot-app/pull/1
Priority: Minor Minor
Reporter: Cyrille Le Clerc

When there is a merge conflict on a GitHub PR, Jenkins displays a cryptic exception instead of having a clear message with an hyperlink to the pull request on github.

Branch indexing
Connecting to https://api.github.com using admin/****** (GitHub Access Token)
Checking out git https://github.com/cyrille-leclerc/my-spring-boot-app.git into /opt/jenkins-oss/jenkins_home/workspace/my-spring-boot-app_PR-1-DZVOWEKBTG4QNQLVIUGZDZT4OEREYWOQPQSIZTLS3MU4M6ZJ5Q3A@script to read Jenkinsfile
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://github.com/cyrille-leclerc/my-spring-boot-app.git
 > git init /opt/jenkins-oss/jenkins_home/workspace/my-spring-boot-app_PR-1-DZVOWEKBTG4QNQLVIUGZDZT4OEREYWOQPQSIZTLS3MU4M6ZJ5Q3A@script # timeout=10
Fetching upstream changes from https://github.com/cyrille-leclerc/my-spring-boot-app.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub Access Token
 > git fetch --no-tags --progress https://github.com/cyrille-leclerc/my-spring-boot-app.git +refs/pull/1/head:refs/remotes/origin/PR-1 +refs/heads/master:refs/remotes/origin/master
 > git config remote.origin.url https://github.com/cyrille-leclerc/my-spring-boot-app.git # timeout=10
 > git config --add remote.origin.fetch +refs/pull/1/head:refs/remotes/origin/PR-1 # timeout=10
 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10
 > git config remote.origin.url https://github.com/cyrille-leclerc/my-spring-boot-app.git # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
No valid HEAD. Skipping the resetting
 > git clean -fdx # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/cyrille-leclerc/my-spring-boot-app.git
using GIT_ASKPASS to set credentials GitHub Access Token
 > git fetch --no-tags --progress https://github.com/cyrille-leclerc/my-spring-boot-app.git +refs/pull/1/head:refs/remotes/origin/PR-1 +refs/heads/master:refs/remotes/origin/master
Merging remotes/origin/master commit 922f0693827e23384386f0d154bf01514d606639 into PR head commit 48bc4f82dab3bac320aefe4fddb50896eb491339
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 48bc4f82dab3bac320aefe4fddb50896eb491339
 > git merge 922f0693827e23384386f0d154bf01514d606639 # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 48bc4f82dab3bac320aefe4fddb50896eb491339

GitHub has been notified of this commit’s build result

hudson.plugins.git.GitException: Command "git merge 922f0693827e23384386f0d154bf01514d606639" returned status code 1:
stdout: Auto-merging Jenkinsfile
CONFLICT (content): Merge conflict in Jenkinsfile
Automatic merge failed; fix conflicts and then commit the result.

stderr: 
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1964)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1960)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1597)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$3.execute(CliGitAPIImpl.java:697)
	at jenkins.plugins.git.MergeWithGitSCMExtension.decorateRevisionToBuild(MergeWithGitSCMExtension.java:122)
	at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1068)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1161)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:296)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Apr 24, 2018, 11:13:02 AM4/24/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: github-branch-source-plugin
Component/s: pipeline

bitwiseman@gmail.com (JIRA)

unread,
May 8, 2019, 12:57:02 AM5/8/19
to jenkinsc...@googlegroups.com
Liam Newman resolved as Fixed
 

Lightweight checkout fixes this issue in v2.5.0

Change By: Liam Newman
Status: Open Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages