false Static Analysis Warnings with symlinks in ClearCase

30 views
Skip to first unread message

Graham Menhennitt

unread,
Apr 7, 2016, 1:32:33 AM4/7/16
to Jenkins Users
We're using the latest Jenkins on Linux to build a project that is stored in ClearCase. Everything builds correctly, but we get some Static Analysis Warnings when we shouldn't.

When the ClearCase plugin gets the project's files, I can see in the Console Output:
14:22:36 New:                     vobs/1062_GEN3/configuration/tools/CSU/device_get_logs_info.sh /main/Integration/2 
14:22:36 New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00:50:56:bc:54:8e" SYMLINK
So, that's a text file in one directory and a symlink to that file from an adjacent directory.

We have Scan For Compiler Warnings enabled with Scan Console Log with parser GNU C COmpiler 3 (gcc). The build reports:
GNU C Compiler Warnings: 1 warning
Static Analysis Warnings: 1 warning

When I click on the warning links, they both take me to the same place which is the above symlink. Clicking through to the warning message, I get the stack trace below. Note that it seems to be taking the "New:" and a lot of spaces as part of the file name.

There are other similar symlinks in the project that don't produce any warnings. I've tried destroying and recreating the link. I've tried swapping around the file and the link (i.e. make the link point in the other direction). No joy.

Does anybody have any clues, please?

Thanks,
  Graham

Copying the source file 'New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00' from the workspace to the build folder 'bcde0ed7.tmp' on the Jenkins master failed.
02 Is the file 'New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00' a valid filename?
03 If you are building on a slave: please check if the file is accessible under '$JENKINS_HOME/[job-name]/New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00'
04 If you are building on the master: please check if the file is accessible under '$JENKINS_HOME/[job-name]/workspace/New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00'
05 java.io.IOException: Failed to copy New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00 to /var/lib/jenkins/jobs/Integration-PrivateBranch/builds/131/workspace-files/bcde0ed7.tmp
06   at hudson.FilePath.copyTo(FilePath.java:1990)
07   at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)
08   at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:312)
09   at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)
10   at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:259)
11   at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
12   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
13   at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
14   at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
15   at hudson.model.Build$BuildExecution.post2(Build.java:185)
16   at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
17   at hudson.model.Run.execute(Run.java:1763)
18   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
19   at hudson.model.ResourceController.execute(ResourceController.java:98)
20   at hudson.model.Executor.run(Executor.java:410)
21 Caused by: java.io.FileNotFoundException: New:                     vobs/1062_GEN3/configuration/tools/RIU/device_get_logs_info.sh "symbolic link d6377eb4.fc7711e5.8fd8.00 (No such file or directory)
22   at java.io.FileInputStream.open(Native Method)
23   at java.io.FileInputStream.<init>(FileInputStream.java:146)
24   at hudson.FilePath$41.invoke(FilePath.java:2016)
25   at hudson.FilePath$41.invoke(FilePath.java:2011)
26   at hudson.FilePath.act(FilePath.java:990)
27   at hudson.FilePath.act(FilePath.java:968)
28   at hudson.FilePath.copyTo(FilePath.java:2011)
29   at hudson.FilePath.copyTo(FilePath.java:1985)
30   ... 14 more

Ullrich Hafner

unread,
Apr 7, 2016, 9:11:51 AM4/7/16
to jenkins...@googlegroups.com
Please create a new bug report in the issue tracker for the warnings plugin. Paste the offending console log snippet into the description (with {norformat} tags), maybe the regular expression of the gcc parser can be improved.

Viele Grüße,

Ulli

--
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/9c346f97-e306-4334-a68e-eee44ae6c3fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages