Comments (10)
It's git plugin and jenkins design, or probably ghprb. You can't use PR job for regular builds.
from ghprb-plugin.
So I can't have both ghprb and github-plugin running together?
from ghprb-plugin.
Atm, yes
from ghprb-plugin.
You would need to add another trigger to the job. The ghprb trigger is only going to run on plugins, then the source poll trigger could run on changes to your branches.
from ghprb-plugin.
@DavidTanner At the moment, I've got GitHub Pull Request Builder and Build when a change is pushed to GitHub triggers enabled, would this be sufficient?
If not, what other triggers can I use to do what I want to do?
from ghprb-plugin.
Simply generate multiple jobs with different trigger versions automatically using jenkinsci/job-dsl-plugin. Create a job template and only change triggers, branch designators and publishers. You also want to make sure not to publish artifacts in PR jobs vs artifacts from stable branches.
from ghprb-plugin.
As @arcivanov mentioned, this plugin is designed for pull requests, and what you're asking for--while totally reasonable--is simply out of scope. I'm going to close this for now.
from ghprb-plugin.
With git webhook configured , How do I build a job for specific branch when someone made a push to it. I have enabled trigger when pushed code to github. Right now all jenkins jobs are triggered even though it was pushed for a different branch.
from ghprb-plugin.
@guruvamsichintala you should be able to whitelist branches on the job configuration. However, if you have multiple jobs, you'd need to set that configuration in each job. HTH
from ghprb-plugin.
I have already specified branch name in "Branches to be build" option. But still when I push code to any branch , all the jobs which are configured for specific branch and triggered when something pushed to git are running. I figured it out with
Configured git plugin inside git, specified the url inside plugin and configured job with poll scm (no schedule). Worked perfectly
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.