Serving Pull Requests with Jenkins

Post on 21-Jan-2017

967 views 3 download

Transcript of Serving Pull Requests with Jenkins

Serving Pull Requests with Jenkins

Seth Goings, DevTools Team Lead @ Deis

Setting Up Your Own PaaS and CI/CD Pipeline

http://tinyurl.com/jnxn8ln

We’re tasked with building the deployment system for the company’s blog

… exciting, I know

Pull Requests

● Run the build/tests/etc● Stand up an actual instance of the blog in Deis (separate app per PR)

Production (master branch)

● Run the build/tests/etc● Deploy new version of the blog in Deis (with no downtime)

http://tinyurl.com/hen848b

2.0

But wait...

● No GitHub Pull Request Plugin Support in Jenkins Pipeline Plugin (yet)

● No Pipeline Visualization in OSS Jenkins (yet)

The Pipeline To Today

Step 1

Acquire (Jenkins)

docker-machine

docker-compose

Step 2

Deploy (Deis)

rigger configure

rigger deploy

Step 3

Connect

Jenkins -> GitHub (API key)

Add SSH Key for Deis in Jenkins

Step 4

Experiment

Create pr builder job

Create production job

Ramping Up With Rigger

http://tinyurl.com/z9wesjt