Comments (18)
You would do this by using the trigger phrase, and then only building with the trigger
from ghprb-plugin.
That's not something the plugins exposes is it? Ie, it would have to be implemented?
from ghprb-plugin.
There are two settings on the project page for the trigger. They are currently exposed. The trigger phrase is an exact match and didn't use a regex like the test or whitelist phrases.
from ghprb-plugin.
But that matches against a PR comment right?
from ghprb-plugin.
I created a flow job which gets all PR triggers which then triggers the exact PR jobs(while a feature to support this is not implemented).
from ghprb-plugin.
I am guessing I am not understanding what you are looking for then. How would you decide where the job goes? Are you looking for something in the PR description that the trigger would key off of whether to build or not?
from ghprb-plugin.
The ghprb incoming payload includes the pull request id, among other information. My idea was to allow matching job names jobs/foo/bar/{ghPrId}/the-build
(this would mean searching for all jobs)...
from ghprb-plugin.
Maybe a better way would be to put a new extension in the trigger that limits the job to triggering certain PR's only? The problem here is that you have to create a new job per pull request right?
from ghprb-plugin.
Yes, I create a "set" of jobs per pull request, see an example here. Each of those jobs has a main-build
which should get triggered, but only for the matching PR.
from ghprb-plugin.
Sounds like a whitelist for PR numbers.
from ghprb-plugin.
But that needs to be able to be set on each of the necessary jobs(not just globally)...
from ghprb-plugin.
Is the "Whitelist Target Branches" the implementation of this?
from ghprb-plugin.
Hmm, don't think so, what I need is to white-list the source, not the target....
from ghprb-plugin.
Have gave any thoughts on implementing this?
from ghprb-plugin.
@s0undt3ch I'm helping out with this repo. I do think the whitelisting of branches is the feature you're looking for. If this issue is still relevant to you, could you give that a try?
from ghprb-plugin.
I'm looking at white listing yes, but the source branch, not the destination branch which was what was available last time I looked.
Can we white list the source branch now?
from ghprb-plugin.
Ah, I don't think so. Marking this as an enhancement (but I need to doublecheck, too).
from ghprb-plugin.
Hello
any update on the "Source Branch whitelist" feature?
I could dedicate some time to implement it, do you know if there is ongoing work on it?
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.