Skip to content

Instantly share code, notes, and snippets.

View scottrmercer's full-sized avatar

Scott Mercer scottrmercer

View GitHub Profile
#!/usr/bin/python
"""
Create a stage in your project, make it the last stage.
Make a task in the stage with this inline script:
#! /bin/bash
/some/path/bamboo-to-slack.py "${bamboo.planKey}" "${bamboo.buildPlanName}" "${bamboo.buildResultsUrl}" "${bamboo.serviceusername}" "${bamboo.servicepassword}"
@scottrmercer
scottrmercer / badgerfish.py
Last active August 29, 2015 14:11 — forked from robo-corg/badgerfish.py
Added a couple of things missing from the original.
import simplejson as json
from lxml import etree
def is_node_badger_array(node):
if len(node) <= 1:
return False
for (a,b) in zip(node,node[1:]):
if a.tag != b.tag:
return False