Hi there,

 
I’m writing an organization plugin for Gitblit 
<https://github.com/SoftwareBuildService/gitblit-branch-source-plugin> 
(something like Github-branch-source) and I read in the docs 
<https://github.com/jenkinsci/scm-api-plugin/blob/master/docs/implementation.adoc>
 
that to implement the automatic triggering of jobs when pushing to the SCM 
a webhook should be implemented. However, I’d like to re-use the webhook of 
the Git Plugin to do this. 

Right now the Gitblit organization projects are not detected by the Git 
“notifyCommit” webhook given that they are WorkflowJob’s and their 
getSCMs() method does not see any checkout in the previous builds 
<https://github.com/jenkinsci/git-plugin/blob/8fa01816c215c51b1aa4c10e2b2441ad2b93e12f/src/main/java/hudson/plugins/git/GitStatus.java#L347>
.

What's more, it seems that the Git hook only acts on the branches already 
scanned in Jenkins, so it doesn't seem posible to trigger a scan when a new 
repository/branch is created and pushed into in Gitblit.

 
Is trying to re-use the Git Plugin webhook for an organization plugin a 
good/bad idea?

Thank you for your attention.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1390a8c6-cfb1-48f7-8e49-b9aef30dc9ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to