5

I would like to build a jenkins plugin which should customize the Build History view. I want to add a link to each successful job in the build history and perform some action. I also want to know how to access the SCM information for that build run from the plugin.

Can you help me with code snippet or any help? Thanks

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Kamal
  • 325
  • 1
  • 3
  • 9

2 Answers2

8

There is a way to customize the Build History View by implementing BuildBadgeAction interface of Jenkins.

Groovy Postbuild Plugin implements and extends the build history view.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Kamal
  • 325
  • 1
  • 3
  • 9
  • I don't think that lets you actually filter the view, or override the list of jobs displayed though. You can just decorate the jobs. – Craig Ringer Nov 13 '18 at 02:25
2

If you really want to write a Jenkins plugin, here is a link to a previous answer that addresses it. Start working on your plugin and then you'll be able to ask more specific questions relating to concrete problems you face. I think that in the present form your question is too vague.

Make sure, however, that writing a plugin is not an overkill for your needs. Chances are that you may be able to do what you need by the 'usual' means. But then again in order to be helped you need to be more specific.

Community
  • 1
  • 1
malenkiy_scot
  • 16,415
  • 6
  • 64
  • 87