Confirmed users
79
edits
m (→Automation Information: Fix Mozmill_CI link) |
(Added information about migrating jobs as firefox rides the trains.) |
||
Line 80: | Line 80: | ||
Visit [http://pf-jenkins.qa.mtv2.mozilla.com:8080/ pf-jenkins] (VPN required), open the summary page of the job you want to disable and click 'Disable Project'. When a job is reported to Treeherder, its Jenkins build url and build id are listed in the Job Details pane. | Visit [http://pf-jenkins.qa.mtv2.mozilla.com:8080/ pf-jenkins] (VPN required), open the summary page of the job you want to disable and click 'Disable Project'. When a job is reported to Treeherder, its Jenkins build url and build id are listed in the Job Details pane. | ||
==== Migrating tests from one release train to another ==== | |||
As Firefox 48 rides the trains, jobs for aurora, beta, release, and ESR will need to be setup in Jenkins. | |||
* <code>git clone https://github.com/mozilla/mozplatformqa-jenkins-config</code> | |||
* Create a virtualenv and activate it. | |||
* <code>pip install python-jenkins</code> | |||
* Run the following command to save off current job configurations on your hard drive. While there is no restore script right now, it would not be hard to cobble one together from the existing files: | |||
<code>mkdir jobs; python save_jobs.py --regexp "^mn-.*$" --host http://pf-jenkins.qa.mtv2.mozilla.com:8080</code> | |||
* Run the following command to copy all of the nightly jobs to aurora. Existing aurora jobs will be modified. | |||
<code> python copy_jobs_to_new_release.py --project-regexp "^mn-.*nightly.*$" --jenkins-host http://192.168.0.7:8080 --src-release nightly --dest-release aurora</code> | |||
<note> This leaves all of the aurora jobs disabled just in case there is a mass of jobs created incorrectly and immediately starts spamming people with failure notifications.</note> | |||
* Enable a test job. mn-mse-youtube-default-aurora-mac is a good one. Run it and make sure it works. You may have to edit your command lines, or the code in copy_jobs_to_new_release.py does not work. | |||
* Once your trial job works, enable all of the others: <code>python enable_jobs.py --regexp "^mn-.*aurora.*$" | |||
===== Caveats ===== | |||
* This always uses the mozilla-central form of mozharness. This is retrieved by a tool callled archiver_client.py by the Jenkins project mozharness-nightly. I could not get a reliable command-line to retrieve the current version of mozharness. This may cause breakage if mozharness makes incompatible command-line changes, such as removing <code>--e10s</code> and adding <code>--disable-e10s</code>. Somebody needs to figure out how to retrieve the aurora version of mozharness using archiver_client.py, make a Jenkins project called mozharness-aurora, and update all of the aurora projects to use that version intead. | |||
===== Other utilties ===== | |||
mozplatformqa-jenkins-config has several interesting python scripts to manipulate Jenkins projects. | |||
* copy_jobs_to_new_release.py - see above. | |||
* copy_to_second_jenkins.py - Take jobs from one jenkins instance, swap out all references to that instance with the second instance, and put those jobs into the second instance. | |||
* disable_jobs.py - Mass disable Jenkins jobs. | |||
* enable_jobs.py - Mass enable Jenkins jobs. | |||
* fix_projects.py - Do regular expression subsitutions inside of Jenkins jobs. | |||
* save_jobs.py - Save job configurations to local disk. | |||
== Command-lines for various tests == | == Command-lines for various tests == |