Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Running Pull Request Builds with Jenkins

DZone's Guide to

Running Pull Request Builds with Jenkins

· Java Zone
Free Resource

Build vs Buy a Data Quality Solution: Which is Best for You? Gain insights on a hybrid approach. Download white paper now!

The joind.in projects are set up so that the build process runs on pull requests when they are opened, which is great! It means that contributors don't have to wait for one of the maintainers to look at it, only to reject the contribution on something that could be picked up automatically. I've had a few questions about the setup so I thought I'd share how it works.

There are a few moving parts here:

We have our build tasks described with phing, so we created new Jenkins jobs to wrap the same phing task that we use for building the project but configured to accept the specific commits that were coming in via pull request. When the new pull request gets opened, it immediately shows up something like this:

commit-status-waiting

And when it's good to go:

commit-status-ok

It's super-helpful to see if a test will fail on our build platform, or if there's a syntax or coding style problem - and it gives immediate, quality-oriented feedback to all our contributors. I'd definitely want to use this again with other teams so I thought I'd mention it here.

Also related: A very useful post that we referred to when setting this up, which you can find athttp://blog.kabisa.nl/2013/11/05/building-github-pull-requests-with-jenkins/

Build vs Buy a Data Quality Solution: Which is Best for You? Maintaining high quality data is essential for operational efficiency, meaningful analytics and good long-term customer relationships. But, when dealing with multiple sources of data, data quality becomes complex, so you need to know when you should build a custom data quality tools effort over canned solutions. Download our whitepaper for more insights into a hybrid approach.

Topics:

Published at DZone with permission of Lorna Mitchell, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}