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
Checkout Sha when building Pull Request #1000
Comments
|
I believe the build process needs to change to the specific revision after checking/branching: |
|
I've got the same issue - quoting my gitter comment:
|
|
This isn't something I'll be focusing on in the near term so I'm marking this issue as help wanted. The default behavior can be changed in the git clone plugin to checkout the SHA instead of FETCH_HEAD |
|
closing this because drone core does not decide how a pull request is cloned. It is decided by the plugin, which in this case is the git clone plugin. Feel free to open an issue or send a pull request to the git clone plugin, or even fork the plugin to use your own customized clone logic |
Consider the following scenario:
There appears to be a race when step (2) is repeated several times quickly. Consider the following Drone output:
Building 7164e168f7
git checkout -qf -b pr/415 origin/pr/415git log .....Building the following revisions:
The build was scheduled to build
7164e168f7yet it blindly pulled the whole PR. It is actually buildingaf4fa16, which should be built in the next build only.The text was updated successfully, but these errors were encountered: