~pwlars/uci-engine/tr-pass-no-tests

« back to all changes in this revision

Viewing changes to cli/ubuntu-ci

  • Committer: paul.larson at canonical
  • Date: 2014-08-12 23:12:36 UTC
  • mfrom: (740.1.5 uci-engine)
  • Revision ID: paul.larson@canonical.com-20140812231236-jaulj4b9xr0v6k8y
resolve merge conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                               'source.orig.tar.gz, etc.) are required to be '
63
63
                               'in the same directory as their respective '
64
64
                               'source.changes.', required=True)
65
 
 
 
65
    ticket_parser.add_argument(
 
66
        '-w', '--wait', action='store_true',
 
67
        help='Do not queue the ticket for processing.')
66
68
    ticket_parser.set_defaults(func=ticket.new_ticket)
67
69
 
68
70
    ticket_updater = subparsers.add_parser(
77
79
        '-b', '--bug', help='New bug number.')
78
80
    ticket_updater.add_argument(
79
81
        '-o', '--owner', help='New owner.')
 
82
    ticket_updater.add_argument(
 
83
        '-y', '--start', action='store_true',
 
84
        help='Queues the ticket for processing.')
 
85
    ticket_updater.add_argument(
 
86
        '-s', '--sources', action='append', default=[],
 
87
        help=('Path to new source.changes files. Source package files (e.g. '
 
88
              'source.dsc, source.orig.tar.gz, etc.) are required to be '
 
89
              'in the same directory as their respective source.changes.')
 
90
    )
80
91
    ticket_updater.set_defaults(func=ticket.update_ticket)
81
92
 
82
93
    status_parser = subparsers.add_parser('status',
192
203
                    utils.CI_URL))
193
204
    except (ticket.SourcePackageUploadError,
194
205
            ticket.MismatchSuitesError,
195
 
            ticket.QueueingTicketError) as exc:
 
206
            ticket.QueueingTicketError,
 
207
            ticket.SourceAlreadyUploadedError) as exc:
196
208
        log.error(exc.message)
197
209
    except Exception:
198
210
        log.exception('Unexpected exception')