Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Parasoft Findings Plugin in Jenkins integration Error

WooJun
WooJun Posts: 1

Hi

I had Installed Parasoft C/C++ Test and 'Parasoft Findings Plugin' in our Jenkins server(Ubuntu 16.04.6 LTS). I'd like to display the C/C++ test report that built in Jenkins. I created a new item and filled out the following in the build and post-build action area: When building the item, the following log was printed. What should I do?

  • Execute Shell
    cd /home/testuser1/parasoft/cpptest/10.4
    ./cpptestcli -data '/root/Parasoft/cpptest/10.4/workspace/' -resource timer -config 'builtin://MISRA C 2012' -report '/var/lib/jenkins/space/Parasoft'

Post-Build Action

  • Record compiler warnings and static analysis results
    Tool : 'Parasoft Findings'
    Report Encoding: 'EUC-KR'

Started by user tester
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Parasoft
[Parasoft] $ /bin/sh -xe /tmp/jenkins4508113673995633908.sh

  • cd /home/testuser1/parasoft/cpptest/10.4
  • ./cpptestcli -data /root/Parasoft/cpptest/10.4/workspace/ -resource timer -config boiltin://MISRA C 2012 -report /var/lib/jenkins/workspace/Parasoft
    Parasoft C/C++test Professional 10.4.2.20190409B424 -- Copyright (C) 2019 Parasoft Corporation
    Parasoft Test 9.7.12.20190404 -- Copyright (C) 2010-2019 Parasoft Corporation
    java.lang.RuntimeException: Error initializing storage.
    at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:68)
    at oorg.eclipse.osgi.launchEquinox.(Equinox.java:31)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:303)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
    at sun.reflect.NativeMethodAccessorImplInvoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImplInvoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImplInvoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework (Main.java:673)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
    at org.eclipse.equinox.launcher.main.main.java:1492
    Caused by: java.io.FileNotFoundException: /home/testuser1/parasoft/test/10.4/configuration/org.eclipse.osgi/.manager/.fileTableLock (denied)
    at java.io.RandomAccessFile.open0(Native Method)
    at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
    at java.io.RandomAccessFile.(RandomAccessFile.java:243)
    at org.eclipse.osgi.internal.location.Locker_JavaNio.java:36
    at org.eclipse.osgi.storagemanager.StorageManager.lock (StorageManager.java:388)
    at org.eclipse.osgi.storagemanager.StorageManager.open (StorageManager.java:701)
    at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:1792)
    at org.eclipse.osgi.storage.Storage.getInfoInputStream (Storage.java:1809)
    at org.eclipse.osgi.storage.storage.(Storage.java:129)
    at org.eclipse.osgi.storage.Storage.createStorage (Storage.java:88)
    at org.eclipse.osgi.internal.framework.EquinoxContainer.(EquinoxContainer.java:66)
    ... 11 more
    An error has occurred.
    null
    Build step 'Execute shell' marked build as failure
    Skipping issues blue once Git is the only supported SCM up to now.
    [Parasoft Findings] Using default pattern '*/report.xml' since user defined pattern is not set
    [Parasoft Findings] [-ERROR-] No files found for pattern '**/report.xml' Configuration error?
    [Parasoft Findings] Searching for all files in '/var/lib/jenkins/workspace/Parasoft' that match the pattern '*/report.xml'
    [Parasoft Findings] Attaching ResultAction with ID 'parasoft-findings' to run 'Parasoft #25'.
    [Parasoft Findings] Using reference building 'Parasoft #8' to compute new, fixed, and outstanding issues
    [Parasoft Findings] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0
    [Parasoft Findings] No quality gates have been set - skipping
    [Parasoft Findings] Health report is disabled - skipping
    [Parasoft Findings] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues)

Finished: FAILURE



Answers

  • [Deleted User]
    [Deleted User] Posts: 0 admin

    Hello @WooJun, this seems to be a problem with starting the Parasoft build in the Eclipse workspace used by your Jenkins CI build. This is indicated by

    java.lang.RuntimeException: Error initializing storage.
    at org.eclipse.osgi.internal.framework.EquinoxContainer.

    The second message

    [Parasoft Findings] [-ERROR-] No files found for pattern '**/report.xml' Configuration error?

    Is a result of the Parasoft build not completing properly so it is searching for a report.xml which is never generated. Can you attach the file {workspace}/./metadata/.log from your Jenkins build workspace to this discussion or create a support case through the Parasoft Customer Portal with the same log attached?