Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Introduction to Jenkins

Andrew Berry
February 28, 2012

An Introduction to Jenkins

Andrew Berry

February 28, 2012
Tweet

More Decks by Andrew Berry

Other Decks in Programming

Transcript

  1. ANDREW BERRY * GUELPH WEB MAKERS MEETUP, SEPTEMBER 2011 An

    Introduction to Jenkins Automating Awesome
  2. Get instant access to an unrivalled library of Drupal training

    from top-tier experts streaming to your computer, tablet, smart phone, & tv.
  3. ‣ Periodic tasks for your website (cron) ‣ Manual-but-repetitive tasks

    ‣ Deployment, project management, backups ‣ Event-triggered tasks ‣ Source commit ‣ Commits in public repositories ‣ Other jobs
  4. ‣ Web-based GUI ‣ XML configuration ‣ Notifications via email,

    RSS, Twitter, Jabber, IRC... ‣ Distributed ‣ Plugins Key Features
  5. Setting up Jenkins ‣ jenkins-ci.org has a Java WebStart application

    that is great for trying out Jenkins on your local machine ‣ Otherwise, download and run java -jar jenkins.war, or install with your package manager ‣ Can easily work within a servlet container
  6. Other Jobs ‣ Run SimpleTest, or Selenium ‣ Pull in

    remote repositories into a vendor repository ‣ Verify the status of files in production ‣ “Test and Tag” ‣ Let’s take a look at drupal.org’s Hudson instance
  7. Jenkins Best Practices ‣ Keep your shell scripts short ‣

    Pull in scripts into your workspace via VCS or the execute shell command ‣ Write your scripts in bash, perl, PHP, VBScript ‣ Write Drupal-specific commands as Drush commands so developers can trigger them
  8. ‣ Not all jobs need to be automatic ‣ Jenkins

    is a great way to train up junior sysadmins or developers ‣ Discoverable, clickable, scriptable ‣ Watch your build history ‣ Be careful about the archiving of artifacts and workspaces