-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not checkout merge commit in Jenkins Pipeline #322
Comments
kirilla111
changed the title
Can not checkout merge commit is Jenkins Pipeline
Can not checkout merge commit in Jenkins Pipeline
Jan 12, 2024
Same issue here, with BB-Cloud. Regards. |
Any updates on how to resolve this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Our team uses BB-server and pipeline configured to build on PR merge in master
Problem occurs when we use merge strategy "Merge commit --no-ff". Bitbucket sends:
So, we expect build under hash of commit merged in master: 144311b20df08572b13c3b4e20c72796e70e6d5c
But in facts scm step checkout commit from fromRef.lastestCommit (326eabb767f9bd19dfb510a81284142adad595a5)
And env.BITBUCKET_PAYLOAD has no information about properties.mergeCommit (144311b20df08572b13c3b4e20c72796e70e6d5c). So, we can`t checkout expected commit via git command.
Our Jenkins file (if needed):
I`m tried different combinations of trigger and scm step configuration but result is always the same. Can you help?
The text was updated successfully, but these errors were encountered: