Commit 0ba9223f authored by Evan Lojewski's avatar Evan Lojewski

jenkins: Fix merge requests to pull submodules from destination repository.

parent adf45fa7
......@@ -42,6 +42,8 @@
/// @endcond
////////////////////////////////////////////////////////////////////////////////
// test
def notify(status, description)
{
updateGitlabCommitStatus name: 'build', state: status
......@@ -61,21 +63,17 @@ def build(nodeName, archive = false, archive_cab = false, analyze = true, test_a
{
URL = 'http://gitlab.raptorengineering.com/kestrel-collaboration/firmware.git'
}
def HASH = ''
def MERGE_REQUEST = false
try {
HASH = env['gitlabMergeRequestLastCommit']
MERGE_REQUEST = true
}
catch (exc)
{
try {
HASH = GITHUB_PR_HEAD_SHA
REFSPEC = '+refs/pull/*:refs/remotes/origin/pr/*'
}
catch (exc2)
{
HASH = '**'
}
}
stage('checkout')
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment