jenkinsci / gogs-webhook-plugin

Jenkins Gogs Webhook
https://plugins.jenkins.io/gogs-webhook/
MIT License
79 stars 42 forks source link

Create new Job on receiving create hook. #7

Closed KangoV closed 7 years ago

KangoV commented 7 years ago

It would be brilliant if this plugin could create a new job (based upon build for master) for a new branch in GOGS. The name could perhaps be configurable, but this would not matter. GOGS already supports sending a hook to a url on a branch and tag create.

sanderv32 commented 7 years ago

@KangoV Can you give me an example of what you want to achieve, because at the moment i can't imagine what you want to do.

KangoV commented 7 years ago

@sanderv32 The idea is to have a new job created in jenkins to build a newly created branch in gogs. If we already have a job in Jenkins which is building master, then a new job should be created based upon the master build but building the branch instead.

I hope that makes sense.

sanderv32 commented 7 years ago

I get your idea but this can be done with the pipeline plugin. Personally i want to keep this plugin simple and it should cooperate with other plugins like for example the pipeline plugin.