~pwlars/ubuntu-test-cases/auto-offline-devices

« back to all changes in this revision

Viewing changes to jenkins/setup_jenkins.py

  • Committer: Paul Larson
  • Date: 2014-10-01 20:46:18 UTC
  • Revision ID: paul.larson@canonical.com-20141001204618-cwk7krb1hzoarf14
mark devices offline automatically if something goes wrong during recovery

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                        help="username to use when logging into Jenkins")
46
46
    parser.add_argument("--dashboard-key", default="",
47
47
                        help="The api-key for dashboard updates")
 
48
    parser.add_argument("--offline-device-key", default="",
 
49
                        help="The api-key for offlining unrecoverable devices")
48
50
    parser.add_argument("-b", "--branch", default="lp:ubuntu-test-cases/touch",
49
51
                        help="The branch this is located. default=%(default)s")
50
52
    parser.add_argument("-c", "--config", required=True,
115
117
        'dashboard_prefix': config_item.get('dashboard-prefix', ''),
116
118
        'dashboard_user': config_item.get('dashboard-user', ''),
117
119
        'dashboard_key': args.dashboard_key,
 
120
        'offline_device_user': config_item.get('offline-device-user', ''),
 
121
        'offline_device_key': args.offline_device_key,
118
122
    }
119
123
 
120
124
    prefix = ""
142
146
        'image_opt': config_item.get('IMAGE_OPT', ''),
143
147
        'timeout': test.timeout,
144
148
        'test': test.name,
 
149
        'offline_device_user': config_item.get('offline-device-user', ''),
 
150
        'offline_device_key': args.offline_device_key,
145
151
    }
146
152
    prefix = ""
147
153
    if(args.prefix):