Using Coverity plugin

267 views
Skip to first unread message

Shobha Dashottar

unread,
Nov 6, 2014, 11:37:31 PM11/6/14
to jenkins...@googlegroups.com
Hi,
   I have the Coverity setup created and installed the client on a linux slave machine. Using Coverity UI I can created the xml and run coverity analysis just fine.
     In my Jenkins job, I have configured Coverity and that build just fails with the below error:
The build job was running fine prior to Coverity .
In the job config, I have given the details of the Integrity Manager and checked the option of "Perform Coverity build, analysis and commit" and nothing else.

What am I missing?

Thanks
Shobha

Saving modified client Dev_RHEL5_x86--274771558
06:52:21 [Dev_RHEL5_x86] $ /home/builder/cov-analysis-linux-7.5.0/bin/cov-build --dir /home/builder/jenkins/coverity/temp-5203856065298512221.tmp /usr/bin/p4 -P 827C6449450B2A55C2F2B48 -s client -i
06:52:23 Last build changeset: 18067994
06:52:23 [Dev_RHEL5_x86] $ /home/builder/cov-analysis-linux-7.5.0/bin/cov-build --dir /home/builder/jenkins/coverity/temp-5203856065298512221.tmp /usr/bin/p4 -P 827C6449450B2A55C2F2B48 changes -s submitted -m 1 //Dev_RHEL5_x86--274771558/...
06:52:25 FATAL: null
06:52:25 java.util.NoSuchElementException
06:52:25 	at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
06:52:25 	at com.tek42.perforce.parse.AbstractPerforceTemplate.parseList(AbstractPerforceTemplate.java:112)
06:52:25 	at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:186)
06:52:25 	at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:996)
...
...

Ginga, Dick

unread,
Nov 7, 2014, 8:04:26 AM11/7/14
to jenkins...@googlegroups.com

Yup, you need to add P4 to the cov-build blacklist field. The Coverity pluging wraps everything and it does not like null responses.

--
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.
For more options, visit https://groups.google.com/d/optout.

Shobha Dashottar

unread,
Nov 10, 2014, 3:15:52 AM11/10/14
to jenkins...@googlegroups.com
Awesome !! This worked. Thanks a lot

dharavath hemanth

unread,
Jun 6, 2016, 11:32:00 PM6/6/16
to Jenkins Users
Can anyone please explain me setting up coverity in jenkins. Thats will really help me.thank you 

Ginga, Dick

unread,
Jun 7, 2016, 8:19:10 AM6/7/16
to jenkins...@googlegroups.com

Install the Coverity plugin, create a project in Coverity, add Coverity as a post-build step, fill in the fields.

 

With more specific questions I can provide more specific answers.

Reply all
Reply to author
Forward
0 new messages