How to add JaCoCo Jenkins plugin repo

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add JaCoCo Jenkins plugin repo

Shihaaz Buhary
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Ulli Hafner
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 <[hidden email]>:

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 [hidden email].
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/A02AE19B-C604-4E52-9852-70D6605FBEE8%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Shihaaz Buhary
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_PhiRePyAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">shih...@...>:

Hi All, 

I would like to add JaCoCo code coverage to my plugin repo. Is there a way that I can enable this in <a href="http://ci.jenkins.io/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fci.jenkins.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHS73EkK8iMzEHwF6Ld01mGsK-vlw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fci.jenkins.io%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHS73EkK8iMzEHwF6Ld01mGsK-vlw&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="_PhiRePyAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkin...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/e0b4c9a1-b6ab-4bf2-be08-b3c69f6734d2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/15e930f9-0303-480d-9101-2a11f1ea6ee3%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Ulli Hafner


Am 11.05.2020 um 11:34 schrieb Shihaaz Buhary <[hidden email]>:

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?

I used that quite some time ago:
https://github.com/jenkinsci/analysis-model/blob/0332b1993edca1e6af9589b256f754dc5a3f2e71/Jenkinsfile

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 <[hidden email]>:

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/15e930f9-0303-480d-9101-2a11f1ea6ee3%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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/B11EA32B-B270-4038-B6CE-054B96439AF6%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Jesse Glick-4
In reply to this post by Ulli Hafner
On Sun, May 10, 2020 at 6:30 AM Ullrich Hafner <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2EwZPPV4mpFw0mYTG6kL3u04WA-WvU%3D0iWeUHpiarvhg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Shihaaz Buhary
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:
On Sun, May 10, 2020 at 6:30 AM Ullrich Hafner <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="grLA7hNIAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ullric...@...> wrote:
> You need to write a custom Jenkinsfile.

FYI:

<a href="https://github.com/jenkins-infra/pipeline-library/pull/21" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkins-infra%2Fpipeline-library%2Fpull%2F21\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2D7EpaWSmirEj8m3fWPI7vhSQhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkins-infra%2Fpipeline-library%2Fpull%2F21\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2D7EpaWSmirEj8m3fWPI7vhSQhQ&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/58c733ce-fc38-4531-99bc-6edea9e13aa4%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to add JaCoCo Jenkins plugin repo

Ulli Hafner


Am 12.05.2020 um 16:24 schrieb Shihaaz Buhary <[hidden email]>:

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 <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/58c733ce-fc38-4531-99bc-6edea9e13aa4%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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9E5EE27E-E185-495C-8B81-B552FC842049%40gmail.com.