summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2017-01-15 20:44:38 +0100
committerMagnus Granberg <zorry@gentoo.org>2020-04-09 07:38:53 +0200
commit593e2eed315dbac85b6318a3cf4dd9fa390c8041 (patch)
treec6ebb3044ebda6a4db180ee458d1afe538ee6e7e /python/tbc_www/utils/bugzillasubmit.py
parentfix ame 'adict' is not defined line 273 (diff)
downloadtinderbox-cluster-www-593e2eed315dbac85b6318a3cf4dd9fa390c8041.tar.gz
tinderbox-cluster-www-593e2eed315dbac85b6318a3cf4dd9fa390c8041.tar.bz2
tinderbox-cluster-www-593e2eed315dbac85b6318a3cf4dd9fa390c8041.zip
Update code to use gosbs backend
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'python/tbc_www/utils/bugzillasubmit.py')
-rw-r--r--python/tbc_www/utils/bugzillasubmit.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/python/tbc_www/utils/bugzillasubmit.py b/python/tbc_www/utils/bugzillasubmit.py
deleted file mode 100644
index d8160dc..0000000
--- a/python/tbc_www/utils/bugzillasubmit.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from __future__ import print_function
-
-import bugzilla
-
-URL = "https://bugs.gentoo.org/xmlrpc.cgi"
-def addnewbug(args):
- bzapi = bugzilla.Bugzilla(URL)
- print(args['username'])
- print(args['password'])
- bzapi.login(user=args['username'], password=args['password'])
- createinfo = bzapi.build_createbug(
- product=args['product'],
- version=args['version'],
- component=args['component'],
- summary=args['summary'],
- description=args['description'],
- assigned_to=args['assigned_to'])
- newbug = bzapi.createbug(createinfo)
- print("Created new bug id=%s url=%s" % (newbug.id, newbug.weburl))
- update = bzapi.build_update(comment=args['comment'])
- bzapi.update_bugs(newbug.id, update)
- kwards = {
- 'contenttype': args['content_type'],
- }
- attchment_id = bzapi.attachfile(newbug.id, args['filename'], args['comment_attach'], **kwards)
- bzapi.logout()
- return newbug