Hello Everyone,


I am a 3rd-year Computer Science student from India. I found GSOC project 
Simple Pull-Request Job Plugin very interesting and want to work on it. 


But I have some concerns.


1. In project description, it's been stated as following


"Specifically, this plugin does not create jobs and does not detect 
branches automatically. The users are responsible for creating the jobs 
they need. This type of jobs have to be triggered via the existing methods 
(e.g. an http post to the Jenkins REST API, or via the UI)."


But then for every pull request administrator of the project needs to 
create a job and then trigger a build. I think this will be cumbersome.


Please let me know if I am wrong.


2. In project description, it's been stated that the pull-request job types 
have these input parameters:


   - 
   
   PR Number
   - 
   
   From Repository URL
   - 
   
   From Branch
   - 
   
   Target Repository URL
   - 
   
   Target Branch
   

But I think this should not be the case. I have done some research on 
payload GitHub sends through webhooks, and I found that pull request 
payloads have all of the above things, so we can extract them from the pull 
request payload itself.


I have gone through the code of below two plugins and I think they are 
pretty simple.


https://github.com/jenkinsci/bitbucket-plugin/tree/master/src/main/java/com/cloudbees/jenkins/plugins

and

https://github.com/jenkinsci/generic-webhook-trigger-plugin


We just need to get input from YAML file and do things according to that.

There is a java lib available to parse YAML file: 
https://github.com/FasterXML/jackson-dataformats-text/tree/master/yaml

Tutorial for above lib: 
https://dzone.com/articles/read-yaml-in-java-with-jackson


Please let me know what do you think.

-- 
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/59ad2795-397e-4aaa-847f-8204c4daa289%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to