Here's the log from the agent. I see another error, it is marked as "warning":
jvm 1 | 2018-07-12 01:43:46,339 WARN - Repository RC file /opt/qb/buildagent/workspace/2573/rel_xxx_merge/.qbcache/qb-scm.xml doesn't exist!
Of the four repositories that it is fetching only the first one, test_xxx_cm, is of type "github". The remaining ones are type "git".
This error refers to a repository that is not supposed to be fetched on this node. This repository is fetched in a step that runs on a different node. This works fine if we run it with all repositories of type "git" (including test_xxx_cm) but it somehow fails now that we changed test_xxx_cm to "github" to be able to run against Github PR.
jvm 1 | 2018-07-12 01:43:41,719 INFO - snapshot taking on: qba16 exec: install_github_ssh_keys
jvm 1 | 2018-07-12 01:43:43,377 INFO - Taking snapshot of repository 'test_xxx_cm'...
jvm 1 | 2018-07-12 01:43:43,379 INFO - Determining head revision for repository: test_xxx_cm
jvm 1 | 2018-07-12 01:43:44,876 INFO - Taking snapshot of repository 'rel_xxx_scripts'...
jvm 1 | 2018-07-12 01:43:44,877 INFO - Determining head revision for repository: rel_xxx_scripts
jvm 1 | 2018-07-12 01:43:45,630 INFO - Taking snapshot of repository 'rel_xxx_certs'...
jvm 1 | 2018-07-12 01:43:45,631 INFO - Determining head revision for repository: rel_xxx_certs
jvm 1 | 2018-07-12 01:43:46,335 INFO - Taking snapshot of repository 'rel_xxx_merge'...
jvm 1 | 2018-07-12 01:43:46,337 INFO - Determining head revision for repository: rel_xxx_merge
jvm 1 | 2018-07-12 01:43:46,339 WARN - Repository RC file /opt/qb/buildagent/workspace/2573/rel_xxx_merge/.qbcache/qb-scm.xml doesn't exist!
jvm 1 | 2018-07-12 01:43:46,341 INFO - Repository does not exist, creating...
jvm 1 | 2018-07-12 01:43:47,084 ERROR - fatal: Couldn't find remote ref refs/pull/2/head