xci: Fix the Gerrit Trigger clone issue for external scenarios 51/52651/6
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Feb 2018 11:58:24 +0000 (11:58 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Feb 2018 12:20:15 +0000 (12:20 +0000)
commit375ecea18576cb947ba8ea40218a35ab0c9709c8
tree01039acc53b312a29c4336dcafc6747e7783a304
parent90f5aa7749149fb0fc1a886133e3e761404330fc
xci: Fix the Gerrit Trigger clone issue for external scenarios

When a patch comes in for an external scenario, Gerrit Trigger injects
refs for that patch for the corresponding project. With the previous
configuration, job attempts to get that patch for releng-xci instead
of the actual project.

But switching to the right project causes Jenkins jobs to fail since
the releng-xci will not be checked out to WORKSPACE.

This change makes the clone for the repo/patch work and then it wipes
out the WORKSPACE and clones releng-xci there to get the actual script
parts to work.

Change-Id: Ide31c21a209dff953118f51e9b09de1d206a3085
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/xci/xci-run-functest.sh
jjb/xci/xci-set-scenario.sh
jjb/xci/xci-start-new-vm.sh
jjb/xci/xci-verify-jobs.yml