Open CritasWang opened 6 years ago
Yep, I didn't find this feature too :(
At the moment there is no filter function like this. I only don't know the ETA for this as there are also other issues which need to be fixed and i'm the only contributor at the moment and my spare time is precious.
+1
Version 1.0.11 has this feature.
Could you please explain me the usage? Thanks!
Just put '[IGNORE]' in front of your commit to ignore the push.
@sanderv32 , I believe IGNORE
feature - is not what @CritasWang has described. Imagine gogs repository with 10 branches, and I want to trigger builds only for 3 of them. IGNORE
will not help. See https://github.com/jenkinsci/gitlab-plugin#branch-filtering
I think the issue should be reopened.
Is it fixed now?
Seems like PR #52 is @CritasWang was talking about. Will merge this soon.
Just merged #61 and will be in the next release
@sanderv32 I see Branch Filter is here. Thanks! But I didn't find a way to specify multiple branches. Is it possible? Should I file new report?
Branch filter currently only works for one branch. If you want to specify multiple branches we need to think on how to do this
Well, this is how it's in gitlab plugin: We could start with regex or comma separation (with wildcards maybe)?
Well, this is how it's in gitlab plugin: We could start with regex or comma separation (with wildcards maybe)?
https://github.com/CritasWang/gogs-webhook-plugin/tree/master/bin
Here is me forked from jenkinsci/gogs-webhook-plugin
But I did not submit PR.Because I don't think it's good enough.just for temporary use。
Code:
How can filter branch。 like devProject only excute by push develop branch