Proper configuration for Jenkins GitHub Pull Request Builder downstream : <p>I'm trying to create two Jenkins jobs that both leverage the <a href="https://github.com/janinko/ghprb" rel="noreferrer" title="GitHub Pull Request Builder">GitHub Pull Request Builder plugin</a> in order to run multiple status checks, but I'm having trouble getting the status check from my downstream job to show up in my GitHub project.</p>

<p>Here's the summarized CI flow I'd like to setup:</p>

<ol>
<li>A pull request is opened against my git repository which triggers <strong>Upstream</strong> job to run in Jenkins</li>
<li><strong>Upstream</strong> reports its status based on the build and, if <code>SUCCESS</code>, should invoke <strong>Downstream</strong> job via a post-build action</li>
<li><strong>Downstream</strong> runs and reports its own status check</li>
</ol>

<p>Step 3 is where I'm having issues. <strong>Downstream</strong> runs properly, but it does not post a status. The status is not even available under the <strong>Branches</strong> section of my GitHub project's settings. I'm not sure how <a href="https://github.com/janinko/ghprb" rel="noreferrer" title="GitHub Pull Request Builder">GHPRB</a> does the initial creation of the status check, but there are references to the context messaging in the Console Output:</p>

<pre><code>14:58:23 Started by upstream project "upstream" build number 209
14:58:23 originally caused by:
14:58:23  GitHub pull request #114 of commit f1ff2819a5308f7819275e732cf44a2cc2ec31dc, no merge conflicts.
14:58:23 [EnvInject] - Loading node environment variables.
14:58:23 Building on master in workspace /store/jenkins/jobs/downstream/workspace
14:58:23  &gt; git rev-parse --is-inside-work-tree # timeout=10
14:58:23 Fetching changes from the remote Git repository
14:58:23  &gt; git config remote.origin.url &lt;removed for privacy&gt; # timeout=10
14:58:23 Fetching upstream changes from &lt;removed for privacy&gt;
14:58:23  &gt; git --version # timeout=10
14:58:23  &gt; git -c core.askpass=true fetch --tags --progress &lt;removed for privacy&gt; +refs/pull/*:refs/remotes/origin/pr/*
14:58:24  &gt; git rev-parse refs/remotes/origin/master^{commit} # timeout=10
14:58:24  &gt; git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
14:58:24 Checking out Revision eac390c51a1b8b591bfe879421bd5fad0421a1ec (refs/remotes/origin/master)
14:58:24  &gt; git config core.sparsecheckout # timeout=10
14:58:24  &gt; git checkout -f eac390c51a1b8b591bfe879421bd5fad0421a1ec
14:58:24 First time build. Skipping changelog.
14:58:24 [build] $ /store/jenkins/tools/hudson.tasks.Ant_AntInstallation/ant_1.8.2/bin/ant -DghprbStatusUrl= "-DghprbSUCCESSMessage=Packaging organization successfully cleaned" -DghprbStartedStatus=Undeploying -DghprbAddTestResults=false "-DghprbCommitStatusContext=Cleaning Packaging" "-DghprbERRORMessage=An error occurred during undeployment" -DghprbUpstreamStatus=true "-DghprbTriggeredStatus=Preparing destructive changes" "-DghprbFAILUREMessage=Packaging organization failed to clean properly" -DghprbShowMatrixStatus=false
</code></pre>

<p>Here are the relevant configuration sections for both Jenkins jobs:</p>

<hr>

<h2>Upstream Job</h2>

<h3>Source Code Management: Git</h3>

<ul>
<li>Name: <code>origin</code></li>
<li>Refspec: <code>+refs/pull/*:refs/remotes/origin/pr/*</code></li>
<li>Branch Specifier: <code>${sha1}</code></li>
</ul>

<h3>Build Triggers</h3>

<ul>
<li>GitHub Pull Request Builder

<ul>
<li>Use github hooks for build triggering <code>✔︎</code></li>
<li>Display build errors on downstream builds? <code>✔︎</code></li>
<li><strong>Trigger Setup</strong> is populated with custom context messaging</li>
</ul></li>
</ul>

<h3>Post-build Actions</h3>

<ul>
<li>Build other projects: <code>Downstream</code></li>
</ul>

<hr>

<h2>Downstream Job</h2>

<h3>Source Code Management: Git</h3>

<ul>
<li>Name: <code>origin</code></li>
<li>Refspec: <code>+refs/pull/*:refs/remotes/origin/pr/*</code></li>
<li>Branch Specifier: <code>*/master</code></li>
</ul>

<h3>Build Triggers</h3>

<ul>
<li>GitHub Pull Request Builder

<ul>
<li><strong>Trigger Setup</strong> is populated with custom context messaging</li>
</ul></li>
</ul>

<h3>Build Environment</h3>

<ul>
<li>Set GitHub commit status with custom context and message (Must configure upstream job using GHPRB trigger) <code>✔︎</code>

<ul>
<li>Custom context messaging fields mirror those listed under the <strong>Trigger Setup</strong> section (I doubt both of these are required, but neither seem to be working currently)</li>
</ul></li>
</ul>

<hr>

<p>What am I missing? <strong>It should be noted</strong> that I do not have the Jobs DSL plugin installed so I cannot leverage <a href="https://github.com/janinko/ghprb#job-dsl-support" rel="noreferrer">the extension that GHPRB provides</a>.</p>
