ghprb: Jenkins doesn't build branches when refspec has been defined
I have defined +refs/pull/*:refs/remotes/origin/pr/* as my refspec and ${sha1} as my branch to build.
Now this stops me from building my normal branches when something is pushed to them, how can this be fixed?
I tried setting multiple refspecs but it didn’t seem to work, maybe my syntax was wrong…
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Reactions: 2
- Comments: 17 (1 by maintainers)
Commits related to this issue
- Update README with info regarding non-PR refspec Using the default `refspec` prohibits the project from automatically building non-PR branches like `origin/master`. Prepending the `refspec` with the ... — committed to jdowning/ghprb by jdowning 10 years ago
- trigger-lt-qcom-openembedded-images: Fix trigger A bug in jenkins gitplugin prevents to notice changes when using refspec over certain branch only [1]. This seems to be fixed in the 3.4.0 version of... — committed to alimon/configs by deleted user 7 years ago
- Update README with info regarding non-PR refspec Using the default `refspec` prohibits the project from automatically building non-PR branches like `origin/master`. Prepending the `refspec` with the ... — committed to nosmo/ghprb-plugin by jdowning 10 years ago
@ssbarnea It is possible, though awkward.
I also have triggers setup for
Build when a change is pushed to GitHubandGitHub Pull Request Builder. Along with that you will need to have your GitHub webhooks setup, just like you would if you had two separate jobs.for me it didn’t work jenkins starts a build when i commit to my branch
6.0.3but with the commit hash from themasterbranch 😭i use
+refs/heads/*:refs/remotes/origin/* +refs/pull/*:refs/remotes/origin/pr/*any idea? can anybody confirm this?
What you must do within section ‘Repositories’: