-
Task
-
Resolution: Cannot Reproduce
-
Minor
-
None
Hi,
I am trying to use the Coverity Plugin with Jenkins and getting error and need help to setup.
We use to run the below from Execute shell: and it worked
{
export PROJECT_NAME=awhois
export JAVA_HOME=/app/buildtools/jdk1.6
export PREVENT_HOME=/app/buildtools/cov-analysis-linux64-7.7.0
export PREVENT_TMP=${WORKSPACE}/covtmp/${PROJECT_NAME}
export PATH=${PREVENT_HOME}/bin:${JAVA_HOME}/bin:${ST_HOME}/bin:${PATH}
if [ -d ${PROJECT_NAME} ] ; then rm -Rf ${PROJECT_NAME} ; fi
rm -Rf object-debug-optimize
rm Rf /tmp/template*
rm -Rf /tmp/coverity_awhois.xml
${MAKE} bootstrap
${PREVENT_HOME}/bin/cov-configure --template -c /tmp/coverity_awhois.xml --compiler gcc --comptype gcc
${PREVENT_HOME}/bin/cov-build -c /tmp/coverity_awhois.xml --dir ${PREVENT_TMP}/ make all VERSION=${VERSION}
${PREVENT_HOME}/bin/cov-analyze --dir ${PREVENT_TMP}/ --cxx --security --concurrency --enable-constraint-fpp
${PREVENT_HOME}/bin/cov-commit-defects --dir ${PREVENT_TMP}/ -V 0 --cva --host cm-coverity.com --dataport 90
--user builder --password Password10900 --stream awhois
}
--------------------
Now I am trying to use the above with Plugin, i get error
have installed coverity jekins plugin v 1.7.1 and Jenkins version 1.609 and created coverity job with coverity instance manager with the given instruction in the jenkins plugin site
Coverity Check Configuration is successful
Additional cov-build arguments: --config /tmp/coverity_config.xml /usr/bin/make --all ( I tried all option make --B, /usr/bin/make --always-make)
Additional cov-analyze arguments: --cxx --security --concurrency --enable-constraint-fpp
Additional cov-commit-defects arguments: -V 0 --cva
Intermediate directory:$WORKSPACE/covtmp/awhois-coverity
Here is the error output
running on adt-brn1-t1-rhel6u4
[awhois-coverity] $ /app/buildtools/cov-analysis-linux64-7.7.0/bin/cov-build --dir /home/deploy/swarm/workspace/awhois-coverity/covtmp/awhois-coverity --config /tmp/coverity_config.xml make "all" /bin/sh -xe /tmp/hudson4188304419843602247.sh
Coverity Build Capture (64-bit) version 7.7.0 on Linux 2.6.32-358.2.1.el6.x86_64 x86_64
Internal version numbers: 772028383d p-indio-push-22816.428
make: invalid option – 'x'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
.
.
This program built for x86_64-redhat-linux-gnu
Report bugs to <bug-make@gnu.org>
[WARNING] Build command make "all" /bin/sh -xe /tmp/hudson4188304419843602247.sh exited with code 2. Please verify that the build completed successfully.
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
/home/deploy/swarm/workspace/awhois-coverity/covtmp/awhois-coverity/build-log.txt
Build step 'Execute shell' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE