Static Analysis Collector Plugin and Pipelines

243 views
Skip to first unread message

Ingmar Wirths

unread,
Feb 7, 2018, 3:55:46 PM2/7/18
to jenkins...@googlegroups.com
Hello,

I would like to use the Static Analysis Collector Plugin with my
Jenkins pipeline project.

Can I do that? If so, how?

The only hint I found that the Static Analysis Collector Plugin might
support pipelines is on the release notes for 1.49:

Added trend graph support for pipelines (JENKINS-31202, thanks to
Benjamin Fuchs for the help!)

That looks promising; however, I was unable to find documentation on
the pipeline steps regarding the Static Analysis Collector Plugin.

So, how should I proceed?

Cheers~

Ullrich Hafner

unread,
Feb 7, 2018, 5:30:51 PM2/7/18
to Jenkins Users

Am 07.02.2018 um 16:12 schrieb Ingmar Wirths <iwi...@bry-it.com>:

Hello,

I would like to use the Static Analysis Collector Plugin with my
Jenkins pipeline project.

Can I do that? If so, how?


yes.

step([$class: 'AnalysisPublisher‘])


I have no idea why this step is not shown in the Snippet Generator…

The only hint I found that the Static Analysis Collector Plugin might
support pipelines is on the release notes for 1.49:

Added trend graph support for pipelines (JENKINS-31202, thanks to
Benjamin Fuchs for the help!)

That looks promising; however, I was unable to find documentation on
the pipeline steps regarding the Static Analysis Collector Plugin.

So, how should I proceed?

Cheers~

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1518016365.9915.9.camel%40bry-it.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Ingmar Wirths

unread,
Feb 12, 2018, 9:46:18 AM2/12/18
to jenkins...@googlegroups.com
This syntax is new to me:

step([$class: 'AnalysisPublisher‘])

I've been searching in the Jenkins documentation, but I couldn't find
an explanation for it. It looks like it enables me to call an arbitrary
Java method. Is this correct?

However, there are still questions:
1. How do I specify the method to be called?
2. How do I pass method parameters?
3. What are the preconditions / limitations of this syntax?

If there is documentation on this syntax and I've just missed it I
would appreciate a link.

Cheers~
> msgid/jenkinsci-users/ECF4A3AF-48FF-4B4A-9E52-
> BBB851C99A18%40gmail.com.

Ingmar Wirths

unread,
Feb 15, 2018, 8:55:16 AM2/15/18
to jenkins...@googlegroups.com
I'm still looking for an explanation for below syntax, but haven't
received an answer yet. Maybe I shouldn't have changed the subject; I
now reverted the subject back to the original one.

Brian Ray

unread,
May 7, 2018, 5:33:43 PM5/7/18
to Jenkins Users
Documentation for the step step and indeed its usage with the AnalysisPublisher step as well is here. The former is a bridge in pipeline to plugin-provided steps that have not yet been enhanced with their own pipeline-friendly symbolic steps.

Brian
Message has been deleted

Brian Ray

unread,
May 7, 2018, 5:37:35 PM5/7/18
to Jenkins Users
My wording at the end should probably be "not yet been ehnanced with their own pipeline-friendly symbolic step API."

Brian
Reply all
Reply to author
Forward
0 new messages