Merge two plugins functionality

30 views
Skip to first unread message

Ahasan Habib

unread,
Jul 2, 2015, 11:11:45 AM7/2/15
to jenkin...@googlegroups.com
Hi,

In a scenario I need to call a jenkins plugin and based on the return of that plugin, I need to update some status using another plugin . I am giving some idea bellow:

My custom plugin{

do some work()

result =call another plugin()

do rest of the task() and update status based on "result";
 }


Does jenkins provide any interface to communicate/ call plugins. What might be the better approach on that. Thanks you all for time. I highly appreciate your help.

Thanks.

Surya Gaddipati

unread,
Jul 2, 2015, 7:54:29 PM7/2/15
to jenkin...@googlegroups.com
Hello Ahsan, 

You could create a new plugin with dependencies on the two plugins and do the orchestration in that plugin .

Your question feels a little vague to give you an exact answer.

Ahasan Habib

unread,
Jul 3, 2015, 1:30:25 AM7/3/15
to jenkin...@googlegroups.com

Hi Surya,


Thanks for your reply. More specific: I need to run gradle job. I have a custom plugin which run maven command on project and do others functionality.

Now I want to add gradle build with maven. Jenkins provide a great plugin called gradle-plugin to serve this purpose. I want to use that one. So how can I use gradle plugin functionality in my custom plugin. My intention is that a user will able to do everything what they can do in gradle-plugin plus the functionality of my existing custom plugin.

How can I add dependency to my plugin? In my case I need to call gradle-plugin to execute command in the middle of my plugin execution. Thanks again for your time.



Ahasan Habib

unread,
Jul 6, 2015, 3:38:46 PM7/6/15
to jenkin...@googlegroups.com
Also I can not add dependency of gradle-plugin as it is in SNAPSHOT. I did not find any repository to pointing it.
Reply all
Reply to author
Forward
0 new messages