Skip to content

Instantly share code, notes, and snippets.

@davehunt
Created August 14, 2012 15:09
Show Gist options
  • Save davehunt/3350152 to your computer and use it in GitHub Desktop.
Save davehunt/3350152 to your computer and use it in GitHub Desktop.
Script to trigger several jobs in Mozmill CI for finding a regression range
import jenkins
j = jenkins.Jenkins('http://qa-mb:8080')
branch = 'mozilla-central'
testrun = 'endurance'
builds = ['20120719030543',
'20120720030549',
'20120721030555',
'20120721041038',
'20120722030555',
'20120723030606',
'20120724030551',
'20120724071408']
parameters = {'BUILD_TYPE': 'daily',
'ENTITIES': '20',
'ENV_PLATFORM': 'linux',
'ITERATIONS': '20',
'LOCALE': 'en-US',
'NODES': 'linux && ubuntu && 64bit',
'PLATFORM': 'linux',
'REPORT_URL': 'http://mozmill-crowd.blargon7.com/db/'}
job_name = '%s_%s' % (branch, testrun)
for b in builds:
parameters['BUILD_ID'] = b
print 'Triggering job: %s with %s' % (job_name, parameters)
j.build_job(job_name, parameters)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment