Thanks . I have now added p4 to the blacklist and it went ahead. But it fails further down the line on every single file.
*MAKE SUCCESSFUL13:28:48 + exit 013:28:48 [WARNING] 1313 C/C++ compilation units (85%) are ready for analysis13:28:48 For more details, please look at: 13:28:48 /home/builder/COV_TEMP/idirs/<project_name>/build-log.txt13:28:48 [Coverity] cmd so far is: [/home/builder/cov-analysis-linux64-7.5.0/bin/cov-import-scm, --dir, /home/builder/COV_TEMP/idirs/<project_name>, --scm, perforce]13:28:48 $ /home/builder/cov-analysis-linux64-7.5.0/bin/cov-import-scm --dir /home/builder/COV_TEMP/idirs/<project_name> --scm perforce13:28:49 Extracting SCM data for 4431 files...13:28:50 User builder doesn't exist.13:28:51 [WARNING] An error occurred while executing command at '/home/builder/jenkins/workspace/<project_name>/<subdir>......':13:28:51 COMMAND: '/usr/bin/p4 filelog -t -i -h somesourcefile.c' failed. Error code 1. Proceeding...* This error is thrown for every single file. On executing the p4 filelog command locally, I get the correct results. Looks like the cov-import-scm command needs some more commandline arguments which I can give using the optional scm-tools or commands arguments but not sure what it wants :) Thanks Shobha On Wednesday, June 24, 2015 at 5:01:09 PM UTC+5:30, rginga wrote: > > I have found that you need to add P4 to the “cov-build blacklist”. This > tells Coverity to no wrap these calls. > > > > *From:* [email protected] <javascript:> [mailto: > [email protected] <javascript:>] *On Behalf Of *Shobha Dashottar > *Sent:* Tuesday, June 23, 2015 11:22 PM > *To:* [email protected] <javascript:> > *Subject:* Configure SCM in the Coverity Plugin > > > > Hi Team, > > I have configured the Coverity plugin for our build. The cov commands > are issues from the build script itself. Coverity itself runs fine but I > wanted to enhance further and selected the Source Control (SCM) option. I > selected the perforce option and entered the P4PORT. > > But, looks it needs something more. The build run throws this error > > java.lang.NullPointerException > <http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException> > > *08:13:29* at > jenkins.plugins.coverity.ScmOptionBlock.checkScmConfig(ScmOptionBlock.java:73) > > <http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.coverity.ScmOptionBlock.checkScmConfig&entity=method> > > *08:13:29* at > jenkins.plugins.coverity.CoverityLauncherDecorator.decorate(CoverityLauncherDecorator.java:104) > > <http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.coverity.CoverityLauncherDecorator.decorate&entity=method> > > *08:13:29* at hudson.Launcher.decorateFor(Launcher.java:695) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher.decorateFor&entity=method> > > *08:13:29* at hudson.model.Slave.createLauncher(Slave.java:374) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Slave.createLauncher&entity=method> > > *08:13:29* at > hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:564) > > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher&entity=method> > > *08:13:29* at > hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method> > > *08:13:29* at hudson.model.Run.execute(Run.java:1744) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method> > > *08:13:29* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method> > > *08:13:29* at > hudson.model.ResourceController.execute(ResourceController.java:98) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method> > > *08:13:29* at hudson.model.Executor.run(Executor.java:374) > <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method> > > Jenkins version : 1.612 > Coverity Plugin version : 1.5.0 > Coverity version 7.5.0 > SCM : Perforce > > I checked the line 73 in ScmOptionBlock.java of Coverity Plugin. It says > *if**(!version.compareToAnalysis(new CoverityVersion(7, 5, 0)) && > this.scmSystem.equals("perforce2009")){* > > > Any idea what is going wrong? I mainly wanted to see the defect trend on the > job's main page. > > Thanks > Shobha > > > > -- > 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 [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/e42dd99a-8792-427d-a141-0148eaab1d17%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-users/e42dd99a-8792-427d-a141-0148eaab1d17%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3c9f1e3f-1593-41cf-8659-ff72f1d65c38%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
