-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support [ci-skip] flag #60
Comments
I'd love to see this as well. |
Patches would be welcome for this feature. |
There is a jenkins-skip-ci plugin, however GHPRB assumes NOT_BUILT is a failure |
@ShonM @imkmf what's the behavior you'd like to see? Right now when we start a build, we toss a "PENDING" status on the commit. The jenkins-skip-ci plugin is implemented as a BuildWrapper, so the build is technically started before it's halted by the plugin. Some options:
|
I would love if GHPRB didn't build when [skip ci] was present, if that's at all possible. Could pending be set later, instead of immediately when a job is queued? I'm not sure I can see the whole process in my head but that sounds like it would be ok to me. Then it's only pending when the job starts actually building. That could mean it's queued, but the status is not pending. That would be ok with me, our Jenkins instance usually powers through jobs quickly enough that wouldn't cause issues |
I'm starting to think that a SUCCESS status is a better choice. If a user puts in [skip ci], then they would expect that it would build successfully, and not fail. I can explain that easier than I can a FAILURE, and it keeps the idea that ghprb updates the status API as often as it can. Thoughts? |
That might work. Could it be configurable? |
This is now implemented in https://github.com/jenkinsci/ghprb-plugin |
I've been trying to get [skip ci] to make GHPRB skip the PR. However, I am yet to see a build get skipped. I have tried putting this phrase in the PR description (with other text) and in the comments but neither seem to work. What is the best place to put this phrase? Is there a PR I can see that used this feature? |
The default regex is .[skip\W+ci]., so if it has't been changed in your config then if you add [skip ci] anywhere in your comments the plugin will ignore it. Check your config and verify it what the actual regex is though in the job config page under advanced. |
.[skip\W+ci]. is what I have (the default one) both in the main config as well as the job config. Unfortunately this doesn't seem to work. I've tried putting it in the merge header as well without success. I'll try poking around to see if I see any problems elsewhere. |
Looking at the code, the plugin will only skip the build if the comment is in the main PR comments |
Thanks for that. I'll try it out. |
Something like Travis CI supports. You can add
[ci skip]
to commit message and build will not be triggered for this commit.P.S. Thanks for awesome plugin!
The text was updated successfully, but these errors were encountered: