Plug-in Development Questions

20 views
Skip to first unread message

Devin Foxhoven

unread,
Jun 28, 2021, 6:10:40 PM6/28/21
to Jenkins Developers
Hello,

I was guided to this online group to direct my question. Specifically, myself and several other students at a university are working on a research project that will function as a plugin on Jenkins. Only just recently starting however, we had several questions regarding the capabilities and limitations of the plugins. 

These are as follows:
  • How can we design the plugin to trigger whenever a user commits to a GitHub repository?
  • Can a Plugin access the current codebase in a GitHub repository, and by extension extract the java files within?
  • Can a plugin run the test cases of a Repository, and then by extension save the data to a csv file?
We haven't been the most successful in finding these answers in any previous posts or on tutorials, so if anyone can assist us, that would be phenomenal.

Ullrich Hafner

unread,
Jun 29, 2021, 4:41:28 AM6/29/21
to JenkinsCI Developers
From your descriptions it looks like that you are trying to adapt Jenkins to work with your code. It would simpler if you would adapt your code to work with Jenkins. 

Normally Jenkins handles for you:
1) Trigger from any repository
2) Checkout from any repository 

Then your plugin comes into place: it runs on the checked out sources and produces results (typically in the UI but CVS will be possible as well). 
Your plugin then can access the files in the workspace and run tests. 
Reply all
Reply to author
Forward
0 new messages