Auto-tools/Projeccts/Platform Quality/Platform Jenkins Notes

From MozillaWiki
Jump to: navigation, search

Links

Notes

MSE/EME jobs

WebRTC profiles

If you want to make changes to the WebRTC Profiles on Jenkins, the configuration script is generate_webrtc_jobs.py and the template for creating the files (parameters etc) are located in webrtc-job-template.xml. Details on individual machines used and global variables to use are present in WebRTC_Test_Matrix.csv

python generate_webrtc_jobs.py --template webrtc-job-template.xml 
--table-csv WebRTC_Test_Matrix.csv --jenkins-host http://pf-jenkins.qa.mtv2.mozilla.com:8080

How to regenerate jobs

For WebRTC, the jobs were initially generated programmatically. However, as time goes on, using the Jenkins utility routines below will be faster and less error-prone.

Job utilities

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.