Writing a coala Jenkins Plugin

163 views
Skip to first unread message

Lasse Schuirmann

unread,
Oct 23, 2016, 5:47:16 PM10/23/16
to Jenkins Developers, John Mark Vandenberg, coala-devel
Hi,

a lot of coala users have asked us to provide a Jenkins Plugin so they
can use our code analysis in Jenkins.

I have no idea how that works exactly but I plan to do this this week
and I hope that this'll be really quick - we can already provide code
analysis results in JSON or any custom format you like as long as the
structure can be expressed with a format string. We can probably
transform that easily into something Jenkins understands.

- It'll be licensed AGPL, like our main project.
- Contributors and proposals on how we should do this to both coala
and the plugin are very much welcome.
- We will maintain the plugin as good as possible. It's hard to keep
the plugins in sight with volunteer only developers and a whole lot of
other things going on at the project but at least we'll be able to
respond promptly to any upcoming problems.

I'll just follow this guide:
https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial - is there
anything specific to code analysis plugins? I really hoped this would
be rather quick and painless. (E.g. building the atom plugin took us
like 15 mins.)

Seeing forward to any hints! Cheers!

Sincerely,

Lasse Schuirmann

la...@schuirmann.net
http://coala.io/ - http://viperdev.io/ - http://gitmate.com/

Jimilian

unread,
Oct 24, 2016, 4:19:42 AM10/24/16
to Jenkins Developers, jay...@gmail.com, coala...@googlegroups.com
Hi

I'm not from cloudbees. But I think that you are looking for something like: https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins

Br, Alex

Ullrich Hafner

unread,
Oct 24, 2016, 4:26:34 AM10/24/16
to jenkin...@googlegroups.com
Well the simplest way would be to write a parser for the warnings plug-in (https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin), then you do not need to write a new plug-in at all.

If this is not sufficient for you (e.g. you need to provide additional data in the UI that will not be available in the output file of your analysis program) you can write a new plug-in that is based on analysis-core (https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins). See the plug-ins checkstyle and findbugs to get the idea. 

--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/db7f0248-e9c8-4fe0-be6f-5bce4132cf08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lasse Schuirmann

unread,
Oct 24, 2016, 4:33:25 AM10/24/16
to jenkin...@googlegroups.com
Hi,

thanks. That looks like what I've been looking for. Hacking together a
parser for the warnings module shouldn't be too hard, probably best we
simply use JSON.
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-dev/2LciAQgdRcY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/D3BAD41D-464D-4F3B-B504-CB852C7AC1D3%40gmail.com.

RISHAV KUMAR

unread,
Oct 24, 2016, 1:46:02 PM10/24/16
to Jenkins Developers
URL under the section "Defining a new parser using the user interface" in this page (https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin) i not working. Can you tell me the correct URL ?

Thanks.

RISHAV KUMAR

unread,
Oct 24, 2016, 2:02:26 PM10/24/16
to Jenkins Developers
I got the answer.


On Monday, October 24, 2016 at 1:56:34 PM UTC+5:30, Ullrich Hafner wrote:
Reply all
Reply to author
Forward
0 new messages