Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Ullrich Hafner


> Am 06.05.2019 um 14:47 schrieb Sverre Moe :
> 
> mandag 6. mai 2019 13.23.02 UTC+2 skrev Ullrich Hafner følgende:
> There are some open issues about that:
> https://issues.jenkins-ci.org/browse/JENKINS-44450 
> 
> https://issues.jenkins-ci.org/browse/JENKINS-55258 
> 
> 
> As a workaround you should pipe the log to a file.
>  
> How so, is there a pipeline step to do this?

No.

> Or do I need to take the output from sh step?

Yes.

> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/7290124c-0624-4822-8595-16fb82a6774f%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/01BE5B84-065A-4A7E-9945-5AE9B184A5F8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Sverre Moe
mandag 6. mai 2019 13.23.02 UTC+2 skrev Ullrich Hafner følgende:
>
> There are some open issues about that:
> https://issues.jenkins-ci.org/browse/JENKINS-44450
> https://issues.jenkins-ci.org/browse/JENKINS-55258
>
> As a workaround you should pipe the log to a file.
>
 
How so, is there a pipeline step to do this?
Or do I need to take the output from sh step?

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7290124c-0624-4822-8595-16fb82a6774f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Ullrich Hafner
There are some open issues about that:
https://issues.jenkins-ci.org/browse/JENKINS-44450 

https://issues.jenkins-ci.org/browse/JENKINS-55258 


As a workaround you should pipe the log to a file.

> Am 06.05.2019 um 13:12 schrieb Sverre Moe :
> 
> I think the tool
> Reads the complete output (where all 4 nodes are intermingled).
> It would be better if it could read only for the one node it is executed 
> within.
> 
> Still I find it odd that it showed the same issues for all nodes. It should 
> at least show the ones from the node itself
> sles12.3 output showed none of the sles12.3 warnings.
> 
> mandag 6. mai 2019 13.01.22 UTC+2 skrev Sverre Moe følgende:
> It seems to be very confused.
> I am bulding on 4 nodes
> opensuse42.3
> opensuse15.0
> sles12.3
> sles15.0
> 
> They have each their own gcc4 ID, but they have the same result, showing the 
> same 4 entries for each.
> Total 5 
> /dev/shm/rpmroot-build-opensuse42.3_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file
> Total 6 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirA
> Total 2 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirB
> Total 10 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file
> 
> None from the sles nodes are shown.
> 
> mandag 6. mai 2019 12.27.29 UTC+2 skrev Sverre Moe følgende:
> How do I use this plugin to record and show C/C++ Warnings/Errors from GCC?
> 
> There is two tools available GNU C Compiler (gcc3) and GNU C Compiler (gcc4), 
> but are those for C?
> We are using a much newer version of GCC.
> 
> Otherwise I could only find these for C++
> recordIssues(tools: [cppCheck()])
> recordIssues(tools: [cppLint()])
> 
> Neither found no warnings, but there where plenty of warnings when running 
> GCC.
> 
> [50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
> src/thing/file.cpp: In member function ‘std::__cxx11::string 
> file::method(const string&, const string&)’:
> src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
>  for (const auto & [ id, m ] : _id_to_var)
> 
> 
> I tried with the gcc4, and it spewed out some errors with stacktrace in the 
> recording. Looks like it tried to run some git commands, and I do not have a 
> git repository at hand, just a stashed archive.
> However it seems at least it did find some Warnings. The warning above was 
> detected by gcc4.
> Is there any way I can stop it from accessing Git when it is trying to record?
> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/86e41f89-fdc6-499d-8cad-3403128bad04%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/AB18F045-B5CD-41E0-B46F-37B4B0EBB963%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Sverre Moe
I think the tool
Reads the complete output (where all 4 nodes are intermingled).
It would be better if it could read only for the one node it is executed 
within.

Still I find it odd that it showed the same issues for all nodes. It should 
at least show the ones from the node itself
sles12.3 output showed none of the sles12.3 warnings.

mandag 6. mai 2019 13.01.22 UTC+2 skrev Sverre Moe følgende:
>
> It seems to be very confused.
> I am bulding on 4 nodes
> opensuse42.3
> opensuse15.0
> sles12.3
> sles15.0
>
> They have each their own gcc4 ID, but they have the same result, showing 
> the same 4 entries for each.
> Total 5 
> /dev/shm/rpmroot-build-opensuse42.3_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file
> Total 6 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirA
> Total 2 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirB
> Total 10 
> /dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file
>
> None from the sles nodes are shown.
>
> mandag 6. mai 2019 12.27.29 UTC+2 skrev Sverre Moe følgende:
>>
>> How do I use this plugin to record and show C/C++ Warnings/Errors from 
>> GCC?
>>
>> There is two tools available GNU C Compiler (gcc3) and GNU C Compiler 
>> (gcc4), but are those for C?
>> We are using a much newer version of GCC.
>>
>> Otherwise I could only find these for C++
>> recordIssues(tools: [cppCheck()])
>> recordIssues(tools: [cppLint()])
>>
>> Neither found no warnings, but there where plenty of warnings when 
>> running GCC.
>>
>> [50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
>> src/thing/file.cpp: In member function ‘std::__cxx11::string 
>> file::method(const string&, const string&)’:
>>
>> src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
>>  for (const auto & [ id, m ] : _id_to_var)
>>
>>
>>
>> I tried with the gcc4, and it spewed out some errors with stacktrace in the 
>> recording. Looks like it tried to run some git commands, and I do not have a 
>> git repository at hand, just a stashed archive.
>>
>> However it seems at least it did find some Warnings. The warning above was 
>> detected by gcc4.
>>
>> Is there any way I can stop it from accessing Git when it is trying to 
>> record?
>>
>>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/86e41f89-fdc6-499d-8cad-3403128bad04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Sverre Moe
mandag 6. mai 2019 12.55.15 UTC+2 skrev Ullrich Hafner følgende:
>
>
>
> I think I should rename the Tools
>
> GNU C Compiler (gcc4) -> GNU C Compiler 
> GNU C Compiler (gcc3) -> GNU C Compiler (3 and older)
>
> And the ID to gcc. 
>
> Would that make sense?
>
>
That makes sense. 

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2539b872-fe24-484a-837f-3ba138368f05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Sverre Moe
It seems to be very confused.
I am bulding on 4 nodes
opensuse42.3
opensuse15.0
sles12.3
sles15.0

They have each their own gcc4 ID, but they have the same result, showing 
the same 4 entries for each.
Total 5 
/dev/shm/rpmroot-build-opensuse42.3_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file
Total 6 
/dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirA
Total 2 
/dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/src/dirB
Total 10 
/dev/shm/rpmroot-build-opensuse15.0_x86_64/projectA/BUILD/projectA-1.3.2/something/some_thing_file

None from the sles nodes are shown.

mandag 6. mai 2019 12.27.29 UTC+2 skrev Sverre Moe følgende:
>
> How do I use this plugin to record and show C/C++ Warnings/Errors from GCC?
>
> There is two tools available GNU C Compiler (gcc3) and GNU C Compiler 
> (gcc4), but are those for C?
> We are using a much newer version of GCC.
>
> Otherwise I could only find these for C++
> recordIssues(tools: [cppCheck()])
> recordIssues(tools: [cppLint()])
>
> Neither found no warnings, but there where plenty of warnings when running 
> GCC.
>
> [50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
> src/thing/file.cpp: In member function ‘std::__cxx11::string 
> file::method(const string&, const string&)’:
>
> src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
>  for (const auto & [ id, m ] : _id_to_var)
>
>
>
> I tried with the gcc4, and it spewed out some errors with stacktrace in the 
> recording. Looks like it tried to run some git commands, and I do not have a 
> git repository at hand, just a stashed archive.
>
> However it seems at least it did find some Warnings. The warning above was 
> detected by gcc4.
>
> Is there any way I can stop it from accessing Git when it is trying to record?
>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/781cdf80-3930-4f9f-8249-336532dedacd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Ullrich Hafner


> Am 06.05.2019 um 12:27 schrieb Sverre Moe :
> 
> How do I use this plugin to record and show C/C++ Warnings/Errors from GCC?
> 
> There is two tools available GNU C Compiler (gcc3) and GNU C Compiler (gcc4), 
> but are those for C?
> We are using a much newer version of GCC.
> 

I think I should rename the Tools

GNU C Compiler (gcc4) -> GNU C Compiler 
GNU C Compiler (gcc3) -> GNU C Compiler (3 and older)

And the ID to gcc. 

Would that make sense?

> Otherwise I could only find these for C++
> recordIssues(tools: [cppCheck()])
> recordIssues(tools: [cppLint()])
> 
> Neither found no warnings, but there where plenty of warnings when running 
> GCC.
> 
> [50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
> src/thing/file.cpp: In member function ‘std::__cxx11::string 
> file::method(const string&, const string&)’:
> src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
>  for (const auto & [ id, m ] : _id_to_var)
> 

I’m not sure if your log is different but the parser gcc4 should work. 

> 
> I tried with the gcc4, and it spewed out some errors with stacktrace in the 
> recording. Looks like it tried to run some git commands, and I do not have a 
> git repository at hand, just a stashed archive.
> However it seems at least it did find some Warnings. The warning above was 
> detected by gcc4.
> Is there any way I can stop it from accessing Git when it is trying to record?
> 

Yes, use 

recordIssues blameDisabled: true, …

BTW: there is also a Gitter channel available: 
https://gitter.im/jenkinsci/warnings-plugin 

> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/db195bc3-2907-4dee-8a4b-a9a1bf2c6734%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1BE0FEAF-0244-499D-B497-CC1E1E80D4F8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Warnings Next Generation Plugin With GCC C++

2019-05-06 Thread Sverre Moe
How do I use this plugin to record and show C/C++ Warnings/Errors from GCC?

There is two tools available GNU C Compiler (gcc3) and GNU C Compiler 
(gcc4), but are those for C?
We are using a much newer version of GCC.

Otherwise I could only find these for C++
recordIssues(tools: [cppCheck()])
recordIssues(tools: [cppLint()])

Neither found no warnings, but there where plenty of warnings when running 
GCC.

[50/107] Building CXX object src/CMakeFiles/some.dir/thing/file.cpp.o 
src/thing/file.cpp: In member function ‘std::__cxx11::string file::method(const 
string&, const string&)’:

src/thing/file.cpp:141:31: warning: unused variable ‘id’ [-Wunused-variable]
 for (const auto & [ id, m ] : _id_to_var)



I tried with the gcc4, and it spewed out some errors with stacktrace in the 
recording. Looks like it tried to run some git commands, and I do not have a 
git repository at hand, just a stashed archive.

However it seems at least it did find some Warnings. The warning above was 
detected by gcc4.

Is there any way I can stop it from accessing Git when it is trying to record?

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db195bc3-2907-4dee-8a4b-a9a1bf2c6734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.