You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2018/06/20 13:38:56 UTC
lucene-solr:branch_7x: Make sure remote branch is available and
tracked locally, and merge remote into local branch
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 412116f1f -> 65cdfc11c
Make sure remote branch is available and tracked locally, and merge remote into local branch
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/65cdfc11
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/65cdfc11
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/65cdfc11
Branch: refs/heads/branch_7x
Commit: 65cdfc11c1c123c4fb0955eb56b637e28b78baf3
Parents: 412116f
Author: Steve Rowe <sa...@apache.org>
Authored: Wed Jun 20 09:38:12 2018 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Wed Jun 20 09:38:50 2018 -0400
----------------------------------------------------------------------
dev-tools/scripts/reproduceJenkinsFailures.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/65cdfc11/dev-tools/scripts/reproduceJenkinsFailures.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/reproduceJenkinsFailures.py b/dev-tools/scripts/reproduceJenkinsFailures.py
index edfe2d4..aca2e10 100644
--- a/dev-tools/scripts/reproduceJenkinsFailures.py
+++ b/dev-tools/scripts/reproduceJenkinsFailures.py
@@ -158,11 +158,18 @@ def prepareWorkspace(useGit, gitRef):
checkoutCmd = 'git checkout %s' % gitRef
code = run(checkoutCmd)
if 0 != code:
+ addWantedBranchCmd = "git remote set-branches --add origin %s" % gitRef
checkoutBranchCmd = 'git checkout -t -b %s origin/%s' % (gitRef, gitRef) # Checkout remote branch as new local branch
- print('"%s" failed. Trying "%s".' % (checkoutCmd, checkoutBranchCmd))
+ print('"%s" failed. Trying "%s" and "%s".' % (checkoutCmd, addWantedBranchCmd, checkoutBranchCmd))
+ code = run(addWantedBranchCmd)
+ if 0 != code:
+ raise RuntimeError('ERROR: "%s" failed. See above.' % addWantedBranchCmd)
code = run(checkoutBranchCmd)
if 0 != code:
raise RuntimeError('ERROR: "%s" failed. See above.' % checkoutBranchCmd)
+ code = run('git merge')
+ if 0 != code:
+ raise RuntimeError('ERROR: "git merge" failed. See above.')
gitCheckoutSucceeded = True
run('git merge --ff-only', rememberFailure=False) # Ignore failure on non-branch ref