Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 11 14:06
    codecov[bot] commented #628
  • May 11 14:06
    codecov[bot] commented #628
  • May 11 13:33
    codecov[bot] commented #628
  • May 11 13:27
    dependabot[bot] edited #628
  • May 11 13:26
    codecov[bot] commented #628
  • May 11 13:26
    codecov[bot] commented #628
  • May 11 13:26
    dependabot[bot] synchronize #628
  • May 11 13:26
    dependabot[bot] edited #628
  • May 11 13:26

    dependabot[bot] on npm_and_yarn

    Bump remark-cli from 6.0.1 to 9… (compare)

  • May 11 13:26
    dependabot[bot] edited #628
  • May 11 13:24
    dependabot[bot] edited #628
  • May 11 13:24

    uhafner on master

    Bump remark-preset-lint-recomme… Merge pull request #630 from je… (compare)

  • May 11 13:24

    uhafner on npm_and_yarn

    (compare)

  • May 11 13:24
    uhafner closed #630
  • May 11 12:28
    codecov[bot] commented #889
  • May 11 12:28
    uhafner synchronize #889
  • May 11 12:28

    uhafner on boostrap5

    Enable configuration dialog for… (compare)

  • May 11 12:17

    uhafner on npm_and_yarn

    (compare)

  • May 11 12:17

    uhafner on master

    Bump eslint from 7.25.0 to 7.26… Merge pull request #923 from je… (compare)

  • May 11 12:17
    uhafner closed #923
Ulli Hafner
@uhafner:matrix.org
[m]
I will add comments in the PR.
miniminmin
@ssang3937_twitter

well.....I made XML file like your example link.. but Jenkins keeps building..
<?xml version="1.0" encoding="UTF-8"?>

<analysisReport>
<elements class="linked-hash-set">
<issue>
<category>category</category>
<type>type</type>
<severity> warning</severity>
<message> code should be clang-formatted [-Wclang-format-violations]</message>
<lineStart>14</lineStart>
<lineEnd>14</lineEnd>
<columnStart>17</columnStart>
<columnEnd>17</columnEnd>
</issue>
</elements>
</analysisReport>

here is a part of my XML file
Ullrich Hafner
@uhafner
What do you mean with Jenkins keeps building?
What does the warnings plugin report in the console log?
miniminmin
@ssang3937_twitter
keeps building means when I click build now button, the stick's color is changed as red, and not completed.
so I cannot see console log, it keeps running, so I cannot see console log.
Ulli Hafner
@uhafner:matrix.org
[m]
You can always open the console log
miniminmin
@ssang3937_twitter

Started by user test
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/github_test
The recommended git tool is: NONE
using credential test

git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url https://github.com/github # timeout=10
Fetching upstream changes from https://github.com/github
git --version # timeout=10
git --version # 'git version 2.25.1'
using GIT_ASKPASS to set credentials
git fetch --tags --force --progress -- https://github.com/github +refs/heads/:refs/remotes/origin/ # timeout=10
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision a7d4254d6adff9ec629e0248639564161e267dc0 (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f a7d4254d6adff9ec629e0248639564161e267dc0 # timeout=10
Commit message: "Add files via upload"
git rev-list --no-walk a7d4254d6adff9ec629e0248639564161e267dc0 # timeout=10
[github_test] $ /bin/sh -xe /tmp/jenkins5619818659927807167.sh

  • clang-format-10 --dry-run /var/jenkins_home/workspace/github_test/test/test.c
  • find / -iname text.txt
    Hello, qqq!
    and then a circle keeps running.
Ulli Hafner
@uhafner:matrix.org
[m]
Puh, if you do a find in your whole filesystem this might take some time 😲
Or do you have an endless loop in your XML Processing script
?
miniminmin
@ssang3937_twitter
nonono.. I just make xml file. and it works well on my local.
and the report pattern I wrote **/out.xml <- would it takes too long..?
I waited almost 10 minutes..
Ullrich Hafner
@uhafner
How does your build step look like? Where does the qqq! come from?
miniminmin
@ssang3937_twitter
actually I am making plugin on skeleton code that jenkins support (hello world). so qqq is what I write when I add build step(say hello world)
build step is execute shell(execute clang-format and store the result as text file) > helloworld plugin(convert to XML file) > warning ng
miniminmin
@ssang3937_twitter
umm.. what about show you my code..if you do not mind..
miniminmin
@ssang3937_twitter
if you are hard to do so, I will try today again. always thanks to your help
and.. I have something to make clear. the place where my XML file store is Jenkins workspace like /var/jenkins_home/workspace/github_test/out.xml
right..?
Ullrich Hafner
@uhafner
Yes that is correct. If you have your code on GitHub please post a link, then I can help (not today anymore but maybe on the weekend)
miniminmin
@ssang3937_twitter
umm... can you give me your e-mail..? since I have some personal information, so it is a little bit hard to post my github link here..
I really really really thank you.. I was really depressed since I can't do my project.. thanks to you, I could get so much useful information
Ullrich Hafner
@uhafner
You will find my email address in the pom file of my plugins
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!!
zjiamzn
@zjiamzn
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?
zjiamzn
@zjiamzn
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
zjiamzn
@zjiamzn
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..