Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33560

BZ 87051 - Coverity plugin no longer wraps SCM tool-arg in quotes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • coverity-plugin
    • None
    • Jenkins 1.642.2, P4 1.3.7, Coverity 1.7.1

      The Coverity plugin no longer wraps the SCM tool-arg in quotes resulting in the following error from cov-import-scm:

      [Coverity] cmd so far is: [/opt/Coverity/7.7.0.4/bin/cov-import-scm, --dir, /space/jenkins/coverity/temp-4876590152075836734.tmp, --scm, perforce, --tool-arg, -u, X_USER_X, -c, X_CLIENT_X]
      $ /opt/Coverity/7.7.0.4/bin/cov-import-scm --dir /space/jenkins/coverity/temp-4876590152075836734.tmp --scm perforce --tool-arg -u X_USER_X -c X_CLIENT_X
      [COMMAND LINE ERROR] Extra token 'X_USER_X' at the end of the command line. Please only specify one value for each option and ensure that all options are preceded with the '' or '-' characters.
      Specify --help for assistance.
      [Coverity] cov-import-scm returned 2, aborting...

      This has been broken since v1.5.1 where it properly wrapped the tool-arg in quotes:

      [Coverity] cmd so far is: [/opt/Coverity/7.7.0.4/bin/cov-import-scm, --dir, /space/jenkins/coverity/temp-965120676354190776.tmp, --scm, perforce, --tool-arg, -u X_USER_X -c X_CLIENT_X]
      $ /opt/Coverity/7.7.0.4/bin/cov-import-scm --dir /space/jenkins/coverity/temp-965120676354190776.tmp --scm perforce --tool-arg "-u X_USER_X -c X_CLIENT_X"
      Extracting SCM data for 155 files...

            kdang Ken Dang
            chuckaude Chuck Aude
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: