Allow checkout from a specific hash - #8528
Merged
Merged
Conversation
|
Droid finished @torcolvin's task —— View job |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Couchbase Lite E2E Jenkins pipeline to allow checking out Sync Gateway by a specific revision string (branch name or commit hash), addressing failures when the provided revision is not resolvable via the default Jenkins git step.
Changes:
- Replaces the
git(...)step with acheckout([$class: 'GitSCM', ...])configuration to allow customrefspecusage. - Attempts to fetch and checkout
params.SG_COMMITeven when it’s a commit SHA rather than a branch name.
There was a problem hiding this comment.
The Jenkins checkout change should work for full 40-character SHAs, but it still won’t handle abbreviated commit SHAs (which the PR description indicates are common). Tighten the parameter contract to full SHAs or adjust the fetch/checkout strategy so short SHAs can be resolved after normal refs are fetched.
bbrks
previously approved these changes
Aug 4, 2026
bbrks
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow checkout from a specific hash.
When Couchbase Lite E2E is run, it gets a hash from a checkout like abc123 which was not able to be checked out:
Added https://jenkins.sgwdev.com/job/Couchbase%20Lite%20E2E%20jenkins%20testing/29 and https://jenkins.sgwdev.com/job/Couchbase%20Lite%20E2E%20jenkins%20testing/28 for fixing the checkout.
need to use
$class: 'GitSCM'to have access to refspec.