How to add JaCoCo Jenkins plugin repo

12 views
Skip to first unread message

Shihaaz Buhary

unread,
May 10, 2020, 3:58:01 AM5/10/20
to Jenkins Developers
Hi All, 

I would like to add JaCoCo code coverage to my plugin repo. Is there a way that I can enable this in ci.jenkins.io and view the HTML report? If not, what is the best or possible way that I can do this?

Thanks,
Shihaaz

Ullrich Hafner

unread,
May 10, 2020, 6:30:16 AM5/10/20
to Jenkins Developers
You need to write a custom Jenkinsfile. Then you also can add SpotBugs reports, etc. 


--
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/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com.

Shihaaz Buhary

unread,
May 11, 2020, 5:34:17 AM5/11/20
to Jenkins Developers
Do you mean that we can view the JaCoCo HTML reports in ci.jenkins.io itself? If so, is there a sample Jenkinsfile that you can point me to?

Thanks


On Sunday, May 10, 2020 at 4:00:16 PM UTC+5:30, Ullrich Hafner wrote:
You need to write a custom Jenkinsfile. Then you also can add SpotBugs reports, etc. 


Am 10.05.2020 um 09:58 schrieb Shihaaz Buhary <shih...@gmail.com>:

Hi All, 

I would like to add JaCoCo code coverage to my plugin repo. Is there a way that I can enable this in ci.jenkins.io and view the HTML report? If not, what is the best or possible way that I can do this?

Thanks,
Shihaaz

--
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 jenkin...@googlegroups.com.

Ullrich Hafner

unread,
May 11, 2020, 7:36:50 AM5/11/20
to Jenkins Developers

Am 11.05.2020 um 11:34 schrieb Shihaaz Buhary <shih...@gmail.com>:

Do you mean that we can view the JaCoCo HTML reports in ci.jenkins.io itself?

Yes.

If so, is there a sample Jenkinsfile that you can point me to?


Now I create coverage reports with GitHub actions only. But it still should work. What you can do as well, take the current version
and add JaCoCo at the end (and adapt the maven options to invoke JaCoCo).



Thanks

On Sunday, May 10, 2020 at 4:00:16 PM UTC+5:30, Ullrich Hafner wrote:
You need to write a custom Jenkinsfile. Then you also can add SpotBugs reports, etc. 


Am 10.05.2020 um 09:58 schrieb Shihaaz Buhary <shih...@gmail.com>:

Hi All, 

I would like to add JaCoCo code coverage to my plugin repo. Is there a way that I can enable this in ci.jenkins.io and view the HTML report? If not, what is the best or possible way that I can do this?

Thanks,
Shihaaz

--
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 jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com.


--
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/15e930f9-0303-480d-9101-2a11f1ea6ee3%40googlegroups.com.

Jesse Glick

unread,
May 11, 2020, 8:31:24 AM5/11/20
to Jenkins Dev
On Sun, May 10, 2020 at 6:30 AM Ullrich Hafner <ullrich...@gmail.com> wrote:
> You need to write a custom Jenkinsfile.

FYI:

https://github.com/jenkins-infra/pipeline-library/pull/21

Shihaaz Buhary

unread,
May 12, 2020, 10:24:08 AM5/12/20
to Jenkins Developers
Thanks Jesse Glick. 

Looks like this has not been merged to master and we will have it somewhere in future? Currently, we need to explicitly write a JaCoCo method? Correct me if I am wrong.

On Monday, May 11, 2020 at 6:01:24 PM UTC+5:30, Jesse Glick wrote:

Ullrich Hafner

unread,
May 12, 2020, 1:49:53 PM5/12/20
to Jenkins Developers


Am 12.05.2020 um 16:24 schrieb Shihaaz Buhary <shih...@gmail.com>:

Thanks Jesse Glick. 

Currently, we need to explicitly write a JaCoCo method? 

Yes. Actually you need to write a new Jenkinsfile. There is no way to just a dd a line to an existing file.


On Monday, May 11, 2020 at 6:01:24 PM UTC+5:30, Jesse Glick wrote:
On Sun, May 10, 2020 at 6:30 AM Ullrich Hafner <ullric...@gmail.com> wrote:
> You need to write a custom Jenkinsfile.

FYI:

https://github.com/jenkins-infra/pipeline-library/pull/21

--
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.
Reply all
Reply to author
Forward
0 new messages