Skip to content

Instantly share code, notes, and snippets.

@rmyers
rmyers / Jenkinsfile
Last active February 28, 2018 17:57
def checkoutPR () {
checkout([
$class: 'GitSCM',
branches: [[name: 'master']],
extensions: [
[$class: 'CheckoutOption'],
[$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: true]
],
userRemoteConfigs: [[
url: 'https://github.com/racker/reach',
@rmyers
rmyers / mock_server.py
Last active December 4, 2018 16:00
Mock Server for Django Integration Tests
import httplib
import multiprocessing
import os
import re
from collections import defaultdict
from wsgiref.simple_server import make_server
from django.core.handlers.wsgi import WSGIHandler
from django.http import HttpResponse