# Deduce what project and directory to operate on (and go there).
noexec = False
verbose = False
- (opts, args) = getopt.getopt(sys.argv[1:], "nv")
+ build_version = None
+ description = None
+ (opts, args) = getopt.getopt(sys.argv[1:], "b:nt:v")
for (opt, arg) in opts:
+ if opt == '-b':
+ build_version = arg
if opt == '-n':
noexec = True
+ if opt == '-t':
+ description = arg
if opt == '-v':
verbose = True
where = os.path.basename(os.getcwd())
Name: %(name)s
Email: %(email)s
Project: %(covname)s
+ Build-Version : %(build_version)s
+ Description: %(description)s
Submitted-by: coverity-submit
""" % globals()
if verbose:
--form project=%(covname)s \
--form password=%(password)s \
--form email=%(email)s \
+ --form version=%(build_version)s \
+ --form description=%(description)s \
http://scan5.coverity.com/cgi-bin/upload.py \
''' % globals())
try:
<cmdsynopsis>
<command>coverity-submit</command>
+ <arg choice='opt'>-b <replaceable>build-version</replaceable></arg>
<arg choice='opt'>-n </arg>
+ <arg choice='opt'>-t <replaceable>project-tag</replaceable></arg>
<arg choice='opt'>-v </arg>
<arg choice='opt'><replaceable>project-name</replaceable></arg>
</cmdsynopsis>
would be run without actually executing them. The <option>-v</option> option
enables slightly more verbose progress messages.</para>
+<para>The <option>-b</option> option specifies an arbitrary build
+version to associate with the submission.</para>
+
+<para>The <option>-t</option> option specifies an arbitrary project tag
+or description to associate with the submission. This text is visible in the
+"snapshots" view of the Coverity web interface.</para>
+
<para>Once <application>coverity-submit</application> has determined
which project profile to use, it then performs the following steps:</para>