mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
Kokoro: Allow manual merge targets in merge-into-chromeos
This allows us to manually specify the merge target when triggering the Kokoro job to do partial merges. BUG=b:209034086 TEST=None Change-Id: If68231b46981dec679445dde50e1fb5ff66e57c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3340211 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com> Tested-by: Dennis Kempin <denniskempin@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
c8970b7a76
commit
e204dda759
1 changed files with 5 additions and 1 deletions
|
@ -64,10 +64,14 @@ main() {
|
||||||
git clean -f -d -x
|
git clean -f -d -x
|
||||||
git checkout -f
|
git checkout -f
|
||||||
|
|
||||||
|
# Remember the HEAD that Kokoro checked out. This is usually origin/main
|
||||||
|
# but can also be manually specified when triggering the job.
|
||||||
|
local target=$(git rev-parse HEAD)
|
||||||
|
|
||||||
# Perform merge on a tracking branch.
|
# Perform merge on a tracking branch.
|
||||||
git checkout -b chromeos origin/chromeos
|
git checkout -b chromeos origin/chromeos
|
||||||
git branch --set-upstream-to origin/chromeos chromeos
|
git branch --set-upstream-to origin/chromeos chromeos
|
||||||
"${KOKORO_ARTIFACTS_DIR}/create_merge"
|
"${KOKORO_ARTIFACTS_DIR}/create_merge" "${target}"
|
||||||
|
|
||||||
upload_with_retries
|
upload_with_retries
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue