ci;jenkins
We have a public instance of Jenkins (formerly Hudson). For most projects it runs their python test suite. Optionally we use it to do JS testing as well as any menial tasks that need to be done regularly, like packaging. If you break things you will be warned in IRC.
If you've got tests (which you should), and you are deploying to production, you might want to add your project to Jenkins. This let's the world know just how wonderful you are at writing tests.
Asumming you're working on mozilla/awesome_project
, you'll need to:
- On Jenkins:
- Log in via LDAP to Jenkins.
- Start a new project.
- Copy Affiliates.
- Update the notification settings (IRC, email, etc).
- Update the Github project to point to
https://github.com/mozilla/awesome_project/
- Update the Git repository to point to
git://github.com/mozilla/awesome_project.git
- Check the "Build when a change is pushed to GitHub" checkbox
- In your repo:
- Copy the
bin/jenkins.sh
script from playdoh if you don't have it. - Make sure it's got
+x
permissions.
- Copy the
- On Github:
- Go to
https://github.com/mozilla/awesome_project/admin/hooks
- The hook URL is
https://ci.mozilla.org/github-webhook/
- Go to
You may need to make some adjustments according to the needs of your particular project.
You can get a Jenkins bot in your channel to send him commands.
- Go to the general configuration https://ci.mozilla.org/configure
- Add your channel in the IRC Notification section
You can now run commands such as jenkins: build awesome_project now