I have a pull request that looks like this with a Jenkinsfile in it:

<https://lh3.googleusercontent.com/-VyjcumzN2jI/WHfh3jFQdGI/AAAAAAAAAF0/3aHfIVYdWMcGquj19XZ5MfT0ErdWMfEQACLcB/s1600/Screen%2BShot%2B2017-01-12%2Bat%2B2.06.37%2BPM.png>
 
<https://lh3.googleusercontent.com/-VyjcumzN2jI/WHfh3jFQdGI/AAAAAAAAAF0/3aHfIVYdWMcGquj19XZ5MfT0ErdWMfEQACLcB/s1600/Screen%2BShot%2B2017-01-12%2Bat%2B2.06.37%2BPM.png>


Before I opened the PR, the branch ran successfully under our Github 
Org/Project in Jenkins2.  Our Github org in Jenkins is set up to run:

Build origin branches
Build origin PRs (merged with base branch)

Now when I make changes to the PR and Jenkins tries to run it, I see this 
in the console output:

Connecting to https://api.github.com using mygithubuser/****** (Jenkin's Github 
account)
java.io.IOException: Cannot find base branch metadata from SCMHead{'PR-65'}
        at 
org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:601)
        at 
org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:586)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:505)
        at 
org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:75)
        at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:215)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:404)
Finished: FAILURE

Has anyone seen this before and/or know what to do about it?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5c52f217-6ab9-4cfe-87a0-ab68591ccfb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to