Comments (5)
There are three phases where this plugin is interacting.
- When the trigger is run or the webhook is triggered.
- When the build actually starts.
- When the build finishes.
Your check would be going in when the build starts, to validate that the PR hasn't changed. Unfortunately right now this would be somewhat hard to determine.
Because the build may or may not be using the actual commit, the plugin can't just choose to quit if it no longer matches. The reference to the build also isn't retained once it is scheduled so this would require another change to the plugin.
You are welcome to submit a pull request, or make some more suggestions here and I will get to them in time.
from ghprb-plugin.
Ah, are you saying that in my above scenario:
- Dev creates PR with commit chain 1
- GHPRB kicks off job 1 on commit chain 1
- Dev rebases / force-pushes PR with commit chain 2
- GHPRB queues up job 2
- Dev rebases / force-pushes PR with commit chain 3
- GHPRB queues up job 3
- Job 1 finally finishes, job 2 starts up
I guess I was assuming that job 2 would test commit chain 2 -- are you saying that job 2 will actually test commit chain 3?
from ghprb-plugin.
Yes. Since the sha1 value is just "origin/pr/" + cause.getPullID() + "/merge" if the PR can be merged, it isn't tied to anything until the git client executes to check out the ref. If you use ghprbActualCommit then it is tied to a commit sha that may/may not exist.
from ghprb-plugin.
Ok. That's probably a bit beyond my Jenkins-foo at the moment. I guess this is best considered a minor optimization -- if someone codes it up someday, that would be great. But it won't be the end of the world if no one does. 😃
from ghprb-plugin.
I just cleaning up some old issues, if this issue is still relevant please reopen.
from ghprb-plugin.
Related Issues (20)
- Unable to connect to GitHub HOT 2
- Worker nodes aren't started when pipeline requests to run parallel parts on same node
- Log4j in ghprb? HOT 1
- Trigger based on directories HOT 1
- Pull request approval without fetch
- usage of org-list may incur github rate limit
- Publish multiple github-statuses from the same pipeline job HOT 1
- ${ghprbActualCommit} does not pick up current commit from hook if an additional branch is specified. HOT 2
- Create new pull request with a comments,but not be triggered. Comment a gain and reopen the pull request,then be triggered
- Restrict Specific branch for Pull request
- What kind of "actions" does the Pull request Webhook of the Github pull request builder support?
- What kind of "actions" does the Pull request Webhook of the Github pull request builder support? HOT 1
- Plug-in Question
- Changing the status context (name) in the config while a job is running leaves the old status in pending forever
- Changing(rotating) plugin credentials take no effect until Jenkins is restarted due to cached repo object
- Is this plugin is not maintained anymore? if so, is there any alternative plugin for it ? HOT 1
- Can Help WIth Plugin Upgrade
- Warning: The currently installed plugin version may not be safe to use. Please review the following security notices:
- Not able to trigger jenkins job by adding specific labels
- When A PR is not mergeable the Github status check does not get updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghprb-plugin.