Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:10
    codecov[bot] commented #648
  • 17:02
    github-actions[bot] assigned #648
  • 17:02
    dependabot[bot] labeled #648
  • 17:02
    dependabot[bot] labeled #648
  • 17:02
    dependabot[bot] opened #648
  • 17:02

    dependabot[bot] on maven

    Bump slf4j.version from 1.7.30 … (compare)

  • Jun 17 17:10
    codecov[bot] commented #647
  • Jun 17 17:10
    codecov[bot] commented #647
  • Jun 17 17:09
    codecov[bot] commented #647
  • Jun 17 17:03
    github-actions[bot] assigned #647
  • Jun 17 17:03
    dependabot[bot] labeled #647
  • Jun 17 17:03
    dependabot[bot] labeled #647
  • Jun 17 17:03
    dependabot[bot] opened #647
  • Jun 17 17:03

    dependabot[bot] on maven

    Bump violations-lib from 1.144.… (compare)

  • Jun 17 09:01
    dependabot[bot] assigned #969
  • Jun 17 09:01

    dependabot[bot] on maven

    (compare)

  • Jun 17 09:01
    dependabot[bot] closed #968
  • Jun 17 09:01
    dependabot[bot] commented #968
  • Jun 17 09:01
    dependabot[bot] labeled #969
  • Jun 17 09:01
    dependabot[bot] labeled #969
Ullrich Hafner
@uhafner
But you can also create private messages here in Gitter
miniminmin
@ssang3937_twitter
ah! okay thanks alot. have a nice day. I will send you my github address. thank you again
Timothy Brackett
@bracketttc
How does one add Issues Totals columns or exclude findings from that total? The docs mention that you can do these things, but I’m not seeing how. (Apologies if I’m just missing it)
Ulli Hafner
@uhafner:matrix.org
[m]
You need to create a new view: there you can configure the columns of the table. The default "All" view is hard coded and cannot be modified, see https://issues.jenkins.io/browse/JENKINS-22340 (and discussion of this "bug" or "missing feature" in jenkinsci/warnings-ng-plugin#866)
Timothy Brackett
@bracketttc
Thanks!
miniminmin
@ssang3937_twitter
I made something come out!!!!
I have some additional question..
  1. can't I show where in the code is wrong?
    e.g) if( a < b)
                  ^
    like this. ^ means the position of wrong.
  2. and I want to make overall dashboard. I mean I will use several tools as I said before(clang-format, IKOS, etc)
    I want to integrate each tool's result and show the overall dashboard.
    Is there any possible way? (such as get dash board / dashboard information from each tool)
    Anything is okay, either build more information. so plz let me know
    Thank you for reading!
Ullrich Hafner
@uhafner

can't I show where in the code is wrong?

Yes, when you set the line and column in a warning, then you will see the annotation in code:
https://ci.jenkins.io/job/Plugins/job/analysis-model/job/master/1167/spotbugs/source.0aea88d5-20e0-45a8-9117-35256de3d5d0/#27

and I want to make overall dashboard. I mean I will use several tools as I said before(clang-format, IKOS, etc)

https://ci.jenkins.io/job/Plugins/job/analysis-model/job/master/1167/

miniminmin
@ssang3937_twitter
image.png
oh, I meant total reports dashboard. like this picture
Ulli Hafner
@uhafner:matrix.org
[m]
No, this is not possible right now.
miniminmin
@ssang3937_twitter
thx for your answer! I'll think more about it. thank you
miniminmin
@ssang3937_twitter
hello! I have a few questions.
  1. Can warning-ng plugin read file stored in var/jenkins_home/workspace ?
    before, I stored my file in var/jenkins_home/workspace/github_project (github_project is project name that I made)
    Since when I store var/jenkins_home/workspace/github_project, I have to write my project name in my plugin.
    It means to use my plugin, pepole who use my plugin have to make project name as github_project.
    I don't want to make pepole make their project name as they want.
  2. Can warning-ng plugin read several reports and set their reports as One graph?
    It means when I set report pattern like /a.xml, /b.json, etc.
    the graph and reports that warning ng support can show the a report and b report at one graph(with different category or type)
Ullrich Hafner
@uhafner

Can warning-ng plugin read file stored in var/jenkins_home/workspace

Of course, that is the main functionality I am using to read reports.

Can warning-ng plugin read several reports and set their reports as One graph

Yes, see documentation for an example. You can also merge results into a aggregation.

miniminmin
@ssang3937_twitter
okay, let me check. thank you!!
Ghost
@ghost~6090a10b6da03739847bba03
Hello, while I was developing my own personal plugin, I had some trouble with recordIssues(tool: issues()) equivalent in freestyle project. The pipeline project can show the view with issues in the log just fine, but in freestyle project, warning-ng scanned all my log files, successfully parsed it and then reported 0 issues. The log files have the same format and are not empty. issues is not available in tool selection in (post-build action for freestyle project) so I had to add a custom ID for the tool. Can you please help me identifying my problem here? Please let me know if my question is not clear or you need more context. Thanks.
Ulli Hafner
@uhafner:matrix.org
[m]
In Freestyle jobs you need to select the id by a human readable name, it is Native Analysis Model Format. I never had a case where the result was different for freestyle of pipelines.
Can you show the logging statements in the console log?
Ghost
@ghost~6090a10b6da03739847bba03
Changed the tool to Native Analysis Model Format and the problem is gone! Previously I didn't change the tool but edited custom ID to issues, thought that would override the tool.
Thanks a lot for your help!!!
Ullrich Hafner
@uhafner
Ah, the custom id just provides a different URL for the results
Ghost
@ghost~6090a10b6da03739847bba03
Ohhhh, I mush have misunderstood its meanings. Thanks for the clarification.
miniminmin
@ssang3937_twitter
Hello! I have some questions about warning ng plugin code.
in the file FileFinder.java, it finds the reports as I wrote in reports pattern when I build warning ng plugin.
when I saw the code, it gets workspace from somewhere, how the file can get the workspace path?
since in my personal plugin, it gets the report as hard coding like /var/jenkins_home/workspace/my_project/result.txt
I want to get only report pattern as **/result.txt, and get the path from root to report path.
thank you for reading!
Ulli Hafner
@uhafner:matrix.org
[m]
You get the workspace path from the recorder's publish method.
miniminmin
@ssang3937_twitter
if you don't mind, can you give the link? I cannot find the file recorder.java
Ulli Hafner
@uhafner:matrix.org
[m]
You should learn how to navigate in your IDE. Look where File Finder has been used, etc.
miniminmin
@ssang3937_twitter
I could not find it.. but let me try..
miniminmin
@ssang3937_twitter
hello! I have a question. before then, most of problems I solved thans to you!!!
Actually I made 2 plugins, so when I build each of them at one build, it makes json report and xml report.
so I tried to add that reports to Native Analysis plugin, but it cannot get 2 report at once.
I gave it a.xml, b.json <- Is this way wrong? (I used comma)
Ullrich Hafner
@uhafner
Comma should work quite well. You also need to provide the path or a default path pattern (**).
Thomas Thielemann
@th.thielemann_gitlab
Hello!
I'm not able the show the affected code. The file and position is found but there is no link to the sources. Do I need to install an additional plugin? In the doc. only the PrismJS lib is mentioned.
Ullrich Hafner
@uhafner
No additional plugin is required. Typically the files simply could not be found. What errors are shon in the console log?
Roshan Thomas
@Thomshan
Hi, Is there a way I can have my own severities classification instead of High, Normal and Low. I want to give custom names to these like issue1, issue2, issue3,issue4. I'm using recordIssues(tool: issues()) in my pipeline btw.
Ulli Hafner
@uhafner:matrix.org
[m]
Severities can be added by extending the plugin. But I am not aware of any project that is doing this up to now. Why do you want to do this? Are you using a custom parser?
Roshan Thomas
@Thomshan
I'm using a static analysis tool that produces some output which I then normalize and put into a json format which is compatible with recordIssues(tool: issues()). I have a large number of issues which I want to categorize in a finer way than just High, Normal and Low, so it's easier to browse through them.
Ulli Hafner
@uhafner:matrix.org
[m]
Wouldn't it be easier to use categories (or types then)? These are supported as tool properties out of the box.
Roshan Thomas
@Thomshan
I'm not aware of that. Do you have a link?
Simply set the category in your arser
Roshan Thomas
@Thomshan
That's neat! Thanks Ulli.
William Brockhus
@YodaDaCoda
Hi, I'm looking at writing a custom plugin/parser to enable warnings-ng to parse the output from Salesforce's SFDX tool, but I'm not really sure how to get started or how I'd go about testing the parser on my existing Jenkins instance. I'm an experienced developer, but not very familiar with enterprise Java patterns. Can anyone help me here?
1 reply
Ulli Hafner
@uhafner:matrix.org
[m]
Yes, you can add new parsers by forking the analysis-model project and adding the parser there. Implementing a parser requires some basic Java skills and (that depends on the type of the output) XML, JSON or RegExp skills. You can see some examples and corresponding tests in the src/main/java/edu/hm/hafner/analysis/parser folder.
Davide Mancusi
@arekfu
Hi all, is it possible to select a parser given the name of the parser as a string? I vaguely remember some $class("gcc") incantation...
1 reply
Ullrich Hafner
@uhafner
Since the 9.x release you can also use the tool analysisParser and the registered ID,
Davide Mancusi
@arekfu
Thanks @uhafner, but is it possible to use the analysisParser tool multiple times with the same parser class but different IDs? Equivalent to something like
recordIssues (tool: [$class: "Gcc4", id: "gcc1", pattern: ...])
recordIssues (tool: [$class: "Gcc4", id: "gcc2", pattern: ...])
Ulli Hafner
@uhafner:matrix.org
[m]
At least that was my intention. But from the code it looks that I used the attribute id twice here. I should find a better name for it. So actually this will not work :bug: The plan was:
recordIssues(tool:analysisParser(id: 'parser-id', url: 'custom-id',  pattern: ...]))
Davide Mancusi
@arekfu
OK, that makes sense. So I will stay on$class for the moment
Ulli Hafner
@uhafner:matrix.org
[m]
Yes, I need to fix that first..
Ulli Hafner
@uhafner:matrix.org
[m]